Stores Page Template – hide # of listings

  • Kari
    Newbie 13 points
    September 18, 2016 at 7:13 pm

    Is there a way to hide the # of listings from displaying underneath each store name when using the template for an all stores page [STORES PAGE]?

    The count is not accurate as it is including the expired listings that we have set to hide once they expire. So when you click into the individual store pages, the count is different as we only display the active listings. Something maybe to fix in the next release? Until then, if there is a way for us to hide this display, that would be great.

    You must be logged in to view attached files.
  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    September 18, 2016 at 9:38 pm

    This would be fairly simple:

    Remove the line <p><?php echo $category->count; ?> listings</p> line number 65 from CP > tpl-stores-content.php

  • Josh
    Super Guru 13,875 points
    September 19, 2016 at 7:01 am

    Hello Kari,
    You could also use some css.Try the below code under Theme Setup >General Setup >Custom css

    .page-template-tpl-stores .store .desc p {
    display: none;

    This reply was awarded the best answer by the topic poster.

  • Kari
    Newbie 13 points
    September 19, 2016 at 5:32 pm

    Thanks Hemanta and Josh. I went with Josh’s suggestion and used the Custom CSS and it worked perfectly.

  • Josh
    Super Guru 13,875 points
    September 20, 2016 at 2:14 pm

    You’re welcome Kari 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes