Load Portfolio with another data-filter rather than "Show All"

This topic has 7 replies, 3 voices, and was last updated 8 years, 5 months ago ago by Robert Hall

  • Avatar: imarash
    imarash
    Participant
    December 18, 2015 at 06:40

    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?

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    December 18, 2015 at 08:49

    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.

    Avatar: imarash
    imarash
    Participant
    December 20, 2015 at 00:29

    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>

    Avatar: imarash
    imarash
    Participant
    December 20, 2015 at 00:32

    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>

    Avatar: Eva
    Eva Kemp
    Support staff
    December 21, 2015 at 09:06

    Hello,

    Please provide us with FTP credentials.

    Regards,
    Eva Kemp.

    Avatar: imarash
    imarash
    Participant
    December 22, 2015 at 04:34

    I fixed the problem by triggering a click on the desired category button after the page load.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    December 22, 2015 at 08:26

    Hello,

    We’re glad to hear it.
    If you have any questions feel free to contact us.

    Regards,
    Robert Hall.

  • Viewing 7 results - 1 through 7 (of 7 total)

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

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.