This topic has 12 replies, 3 voices, and was last updated 5 years, 3 months ago ago by Rose Tyler
Hello,
Among the specifics of the theme 6.0 I read:
ADDED: et-cat GET param for auto sort portfolio while loading the page
How does it work exactly? Do you have some example?
Hello,
It’s related to Portfolio page. If you have a lot of the projects from some category, limited number and pagination on the portfolio page then click by the category filter http://prntscr.com/ov0kfb you’ll get projects of this category with pagination according to limit option. Before this fix, the projects for the category was disorganized, especially after going to the second page.
We don’t have an example on the demo because we don’t have a lot of projects there.
Regards
I thought we spoke of another thing.
Some month ago, I asked you (this is the topic https://www.8theme.com/topic/two-questions-about-portfolio-section/) how to create a link to open the portfolio page with a precise category button already selected.
More precisely my question was:
There is a way to call a category of the Portfolio by a link?
Namely, open the page with the Xyz button selected.
Maybe sometimes like this: sitename.com/portfolio?filter=.sort-xyz (where “xyz” is the slug of that category). I know that a link in this way doesn’t work, but I would like to know how to write it
At the end of the chat you wrote to me:
We’ll implement it in the next theme update.
Well, how to do this now?
Hello,
Yes, this option was also added. You can use sitename.com/portfolio?et-cat=19 where 19 is the category ID.
Regards
Hello,
I tried sitename.com/portfolio?et-cat=33 (precise link in pvt area) … the button “magazine” (id=33) is showed as selected but the content is not showed like if was really selected, it still is like “Show All”
Please check the link in pvt area
Where am I wrong?
Hello,
Sorry but I don’t see problem with this.
Regards
Hello,
Strangely, it works now. But yesterday I assure you that it didn’t work! I don’t know why…
1)
Can you please remove the video link in your reply above? because the site is not yet publicly online.
2)
After this working test, I would like to restore what I had before (that yesterday I removed to try the new code)
The question is: to open a category as deafult (instead of Show All) before I had this code in portfolio.php
<script>
jQuery(document).ready(function(){
jQuery('[data-filter=".sort-mag"]').trigger( "click" );
});
</script>
where “mag” was the slug of the category called “magazine”
Have I now to use something with ?et-cat=33 (where “33” is the ID of the “magazine” category) by chance? How to adjust the code?
I ask this because with the previous code the link sitename.com/portfolio?et-cat=33 doesn’t work (the command is overwritten by the other on the page)
Hello,
1) Done
2) Why can’t you use the Custom link menu item with the correct link to portfolio category that should be active instead of the script?
Regards
Hello,
1) Thanks
2) I thought about it, but I like the clean url.
Also, if someone wrote it by hand and removed the second part, it would show “show all” and I want to avoid this.
Do you say I can’t keep both things?
Maybe in the next update of the theme, you could insert a setting that sets which category to start the portfolio by default
Hello,
2) Both codes work, but if you check the video you’ll see that your code takes priority. You asked about the way to load the category opened by URL if you visit it and we implemented this. But you found that it’s not suitable for you and you need something other. Sorry , but we got only 1 request about “setting that sets which category to start the portfolio by default” – from you only, so if you need some other way to load the category submit customization request to get personal assistance with this question according to your technical project.
Regards
Ok, thanks.
Could you remove the link at the video because the website is not yet online?
Hello,
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up