Okay
  Public Ticket #2037793
Set default product category - other than "All"
Closed

Comments

  •  4
    bluphoto started the conversation

    I have removed the "All" option from my displayed product category filters through CSS, but still when my page loads, all portfolios are still displayed until I click on a visible category.

    Can you let me know how to set another category as the default on page load, so that for example, only "dance" portfolios are loaded until the user selects another filter option?

    thanks

    Guy

  • [deleted] replied

    Hi Guy,

    - Can you please share your Wordpress credentials because I need to login to your site and inspect your site to give you the exact code to achieve that. Your information is safe here (private) in this thread.

    To include your credentials click Insert Credentials button in editor toolbar (see how)

    - Also please tell me which category you want to auto select and the exact page.

    Thanks!

  •   bluphoto replied privately
  • [deleted] replied

    Hi,

    Can you also tell me which category you want to auto select and the exact page?

    Thanks!

  •  4
    bluphoto replied

    Set the dance category by default, but please show me how to change that to another category, or even change back to "all" if I need to.

    The page would just be the landing page: guycarnegie.com/


    thanks

  • [deleted] replied

    Hi bluphoto,

    I added this JavaScript code in the Theme Options > JavaScript & Tracking Code >Footer JavaScript area:

    <script> jQuery( document ).ready( function( $ ) { jQuery( '.home .portfolio-category-dance a' ).click(); } ); </script>

    And now your dance category is selected automatically, see video: https://d.pr/v/i4cSpt

    Have a nice day!