This topic has 7 replies, 3 voices, and was last updated 8 years, 11 months ago ago by Robert Hall
Hi
I want to change the default data-filter (on page load) of portfolio page be sth else (e.g. “Tattoos”) rather than “show all”.
How can I do this?
Hello,
You can change it in \themes\classico\framework\post-types\portfolio.php file on line 201 in the following code
<li><a href="#" data-filter="*" class="btn big active"><?php _e('Show All', ET_DOMAIN); ?></a></li>
Regards,
Robert Hall.
I tried this code instead, but it doesn’t work:
<li><a href="#" data-filter="sort-tattoos" class="btn big active"><?php _e('Tattoos', ET_DOMAIN); ?></a></li>
I tried this code instead, but I see changes after clicking the button not on page load:
<li><a href="#" data-filter="sort-tattoos" class="btn big active"><?php _e('Tattoos', ET_DOMAIN); ?></a></li>
Hello,
Please provide us with FTP credentials.
Regards,
Eva Kemp.
I fixed the problem by triggering a click on the desired category button after the page load.
Hello,
We’re glad to hear it.
If you have any questions feel free to contact us.
Regards,
Robert Hall.
Tagged: data-filter, json array, portfolio, show all, templates, woocommerce, wordpress
The issue related to '‘Load Portfolio with another data-filter rather than "Show All"’' has been successfully resolved, and the topic is now closed for further responses