Support Has Moved!

Please post all new questions on the new support system

Before posting a discussion topic, be sure to check out our Forum Rules and Support Policy.

Get design feedback and approval with our newest WordPress plugin, ProjectHuddle. Check it out →

Latest Struck Version is 1.06

Latest GridStack Version is 1.1

Latest Edition Version is 1.6

Latest District Version is 1.2.6

Latest ExtraNews Version is 1.4.9

Latest Aware Version is 1.4

Latest BigFormat Version is 1.4

Latest Bookcase Version is 1.54

Latest Ellipsis Version is 1.5

Start portfolio on other filter than "All"

davidvandiepen's Avatar

davidvandiepen

04 Sep, 2015 12:02 PM

Hi, i try the same thing as in this post:

http://support.themewich.com/discussions/gridstack-wordpress-theme/2518-change-the-default-portfolio-filter-on-the-home-page

My page is on: http://webheld.nl/web/c4sl/publications/#
I would like to start on "Books" in stead of "All", I tried all kinds of jQuery-methods to run the script you suggested in that other post, but with no luck..

At this moment, i have the following code in "Tracking Code":

<script>
jQuery(document).ready(function() {
jQuery('.page-id-118 a[data-filter=".books"]').click();
});
</script>

Thank you so much for your help!

  1. 1 Posted by Eric Schmidt on 04 Sep, 2015 01:49 PM

    Eric Schmidt's Avatar

    Hi,

    The click function looks correct. Try triggering it later after the page completely loads. So replace the opening document ready function on the first line with this...

    jQuery(window).load(function() {
    

    Eric

  2. 2 Posted by davidvandiepen on 07 Sep, 2015 02:11 PM

    davidvandiepen's Avatar

    Thank you so much, that did the trick!
    The support of this theme is awesome.

  3. Support Staff 3 Posted by Andre Gagnon on 07 Sep, 2015 04:24 PM

    Andre Gagnon's Avatar

    Excellent! We're so glad! Let us know if you need any additional assistance.

    Andre

  4. Andre Gagnon closed this discussion on 07 Sep, 2015 04:24 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac