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

Pre-selected filter for Portfolio page

bjohnsrud's Avatar

bjohnsrud

23 Oct, 2014 09:49 PM

On my portfolio page, I would like one category to be pre-selected instead of the "all." I still want all categories to show up as filters at the top, I'd just like one to be already pre-selected (the more important one). Is there a way to do this?

  1. 1 Posted by Eric Schmidt on 24 Oct, 2014 05:27 PM

    Eric Schmidt's Avatar

    Hi,

    In the tracking box of the Site Options, try adding this code to trigger a click on load...

    <script>
    jQuery(document).ready(function($) {
    jQuery( ".filter a[data-value='website']" ).click();
    });
    </script>
    
    That would filter the category 'website' on initial load of the page.
    
    Eric
    
  2. Eric Schmidt closed this discussion on 24 Oct, 2014 05:27 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