Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #998309
    LorenAbility360
    Participant

    Hello,

    I want to add code / text to the category description so that it shows in the header of the category/archive page.

    I followed the instructions here:
    https://community.theme.co/forums/topic/display-category-description/

    It doesn’t seem to be working.

    What I did so far:
    – Uploaded child theme for x from member page
    – Copied _landmark-header.php from x/framework/views/integrity/ to x-child/framework/views/integrity
    – added this line of code in several spots
    <p class="p-landmark-desc"> <?php echo category_description(); ?> </p>
    – Added CSS code into child theme css file

    .p-landmark-desc {
     font-size: 14px;
     color: #CCCCCC;
    }
    #998767
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Did you activate child theme? and make sure it is working first. Please provide us with the URL to your site to check.

    Thanks!

    #1000192
    LorenAbility360
    Participant

    I just activated it. It seems like it is working.

    It doesn’t seem to like cornerstone shortcode though.
    http://ability360.org/posts/livability

    Also, my widgets are gone now.
    Main Sidebar is empty and so are all my other sidebars.

    #1000586
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! By default, shortcodes were not allowed in the category descriptions. You have to enable it. Since your child theme is set up, please add the following code in your child theme’s functions.php file

    // Allow shortcodes in Category description
    // =============================================================================
    add_filter( 'term_description', 'shortcode_unautop');
    add_filter( 'term_description', 'do_shortcode' );

    Your sidebar isn’t showing anything because the main side is empty (http://prntscr.com/b65dv6). Please add some widgets or make sure that your custom sidebar is assigned to a particular category.

    Hope this helps. Kindly let us know.

    #1001985
    LorenAbility360
    Participant

    I checked today and the conerstone codes are now working. I didn’t even have to add the code you suggested in functions.php. That code was already in there…

    Before the child theme, I had a main sidebar filled with widgets. When i activated the child them, all my sidebar widgets were gone.

    #1002279
    Jade
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1005982
    LorenAbility360
    Participant
    This reply has been marked as private.
    #1006603
    Friech
    Moderator

    Hi There,

    Thanks for the credentials. All your widgets are placed on the Inactive list.


    screenshot

    Yes, this do happen when switching theme. You can drag this Inactive widget back to there corresponding sidebars.

    Hope it helps, Cheers!

    #1007507
    LorenAbility360
    Participant

    thx

    #1007576
    Jade
    Moderator

    You’re welcome Loren.

  • <script> jQuery(function($){ $("#no-reply-998309 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>