cpt>categories and subCategories

This topic contains 8 replies, has 3 voices, and was last updated by  Guust 6 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #423754

    jahusdtc
    Expired Member
    Post count: 162

    Yet another Category and SubCategory confusion on my part!

    On a LISTING page (right?) which is something like:
    https://thechristianbusinessdirectory.online/businesses/churches/

    I have added a CPT>Categories widget. Works just as hoped for Churches.
    I.E., says Churches at top and below are all the little sub-categories of denominations.

    Below THAT are all the listings of ALL churches. A-OK.

    Where I am confused is when I click on one of the little sub-categories of denominations.
    Let’s say: Baptist.

    On THAT page, I see, say 3 Baptist churches. But the TOP of the page…although I still see the TITLE of my CPT>Categories Widget does NOT say Baptist anywhere.

    Is there something I am missing?

    Sorry to bother you folks!

    #423893

    Alex Rollin
    Moderator
    Post count: 27815

    The widget I think you are pointing out does not have the last options selected: Don’t filter for current viewing post type and Don’t filter for current viewing category

    The title does not change, based on the page.

    Am I missing something in your question?

    #423922

    Guust
    Moderator
    Post count: 29970

    There are no subcategories of https://thechristianbusinessdirectory.online/businesses/churches/churches-baptist/ I guess. So based on your settings, there are (sub)categories to show, you cannot drill further down.
    All you see is “Business categories” because that is the title of the widget.

    Thanks

    #424027

    jahusdtc
    Expired Member
    Post count: 162

    Okay, Guust, I sorta understand that…

    But on the first page, I see Category and Subcategories:
    https://thechristianbusinessdirectory.online/businesses/churches/

    On the next clicked through page, I see … basically nothing.
    https://thechristianbusinessdirectory.online/businesses/churches/churches-baptist/

    Is there a way on THAT second page that I could STILL see the “Category” (which is now the Subcategory of Baptist) at the top?

    Am I missing a setting? Should I be using another of your widgets?

    #424032

    Guust
    Moderator
    Post count: 29970

    Try the Popular Categories widget, let us know.
    Thanks

    #424821

    jahusdtc
    Expired Member
    Post count: 162

    All right, I admit — I haven’t yet taken your advice.

    That’s because I looked at Page Source and SEE that title on the page — but it’s not visible. Obviously, I’ve messed something up.

    On the Source, I’m seeing — right below the header, this HTML fragment. (BTW, am I supposed to mark this as Code in a Support query — or is that overkill?)

    
    
    </header>
    <div id="geodir_wrapper" class="">        <div
                class="geodir_full_page clearfix">
                <section id="geodir_cpt_categories_widget-3" class="widget geodir-widget geodir_cpt_categories_widget"><div class="gd-cptcats-widget"></div></section>        </div><!-- clearfix ends here-->
        <div class="clearfix geodir-common"><div id="geodir_content" class="" role="main" style="width:67%;"><header class="entry-header"><h1 class="entry-title fn">All Churches-Baptist </h1></header><section id="geodir_advanced_search-1" data-show-adv="default" data-show-adv="default" class="geodir-advance-search-default widget geodir-widget geodir_advance_search_widget geodir-advance-search-default"><form class="geodir-listing-search gd-search-bar-style "
          name="geodir-listing-search" action="https://thechristianbusinessdirectory.online/" method="get">
        <input type="hidden" name="geodir_search" value="1"/>
    
        <div class="geodir-loc-bar">

    As you can see, there is

    <header class="entry-header"><h1 class="entry-title fn">All Churches-Baptist </h1></header>

    That is what I’d like to see at the top and it looks like Geodir already has that built in! Yes!

    But…I don’t know if I have the wrong Z-Index or what, because I’m not seeing it. Can you give me a clue about what I need to do to make the “All Churches – Baptist” actually SHOW?

    That would solve my problem … but magic CSS doesn’t seem to be working its wonder for me. Have tried multiple multiple selectors, but not seeing the title show.

    Could you please give it a look?

    Thank!

    #424831

    Guust
    Moderator
    Post count: 29970

    Try adding this CSS:

    body.sd #geodir_content > header.entry-header {display: initial;}

    Yes, you should wrap any code in the code tags, or it will not show as code.

    Thanks

    #424849

    jahusdtc
    Expired Member
    Post count: 162

    That was it!!! Thank you for solving my mystery! Really appreciate it. Page so much more informative with that Category or Sub-Category title. Wohoo!

    For anyone else unfamiliar with exactly what “initial” does…

    “The initial CSS keyword applies the initial value of a property to an element. It is allowed on every CSS property and causes the element for which it is specified to use the initial value of the property. When using initial value, it will pick the value as defined in the spec as properties default.”

    #424859

    Guust
    Moderator
    Post count: 29970

    You’re welcome:)

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket