New Landing How can we help? Themeforest Theme Support Dante Add category description on category/archive pages

Viewing 13 posts - 16 through 28 (of 28 total)
  • Posted in: Dante
  • #169040
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .menu-item-desc{
    display:none !important;
    }

    Thanks
    Mohammad

    #169143
    morruu
    Member
    Post count: 106

    Hi,

    It looks very nice now.
    Thank you for the support.

    Best regards
    Morten

    #169151
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Thanks Mohammad.
    -Rui

    #212723
    morruu
    Member
    Post count: 106

    Hello again,

    I installed the newest version of Dante, but now I can’t see the category/archive page description before my posts. One example is http://www.altombasketball.dk/basketball-bolde/ (take a look at the attached screendump).

    I have made the changes to category.php and archive.php as you recommended.

    What could be wrong?

    Best regards
    Morten

    Attachments:
    You must be logged in to view attached files.
    #212729
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Try to purge any cache plugin or the browser cache and try again.

    -Rui

    #213009
    morruu
    Member
    Post count: 106

    I deleted the cache files generated from WP Super Cache and reload the page http://www.altombasketball.dk/basketball-bolde/ with ctrl + F5 to refresh the cache in the browser. It doesn’t seem to work.

    I then deactivated the WP Super Cache plugin, but stil no category description before my blog posts.

    Best regards
    Morten

    #213187
    David Martin – Support
    Moderator
    Post count: 20834

    Hello,

    If these changes were not added to a child theme, they will be overwriteen on theme updtae.

    You will need to activate the supplied child theme, then add the modifications to the child theme to prevent them getting overridden on update.

    Ref: https://codex.wordpress.org/Child_Themes.

    – David.

    #213260
    morruu
    Member
    Post count: 106

    Hello David,

    Thank you for the support.

    I know it’s risky to update the main theme files category.php and archive.php, but I can’t figure out why it’s not working after the update.

    I haven’t tried with a child theme before, so therefore I added the changes as described by Mohammad and Rui.

    Best regards
    Morten

    #213597
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Morten,

    You will need to re-edit the files as they would have been overwritten when the theme update happened.

    Can you check you have correctly add the changes, then clear the cache?

    -David.

    #213817
    morruu
    Member
    Post count: 106

    Hi David,

    I have made the changes as described in this topic please take a look at the screenshots.

    I then clear the cache in WP Super Cache under contents. I click on both buttons: Clear expired and Delete cache.

    Then I open my browser and click on ctrl + f5.

    I still can’t see the category description. I hope you can help me?

    Best regards
    Morten

    Attachments:
    You must be logged in to view attached files.
    #214493
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    This sounds like you have possibly missed a closing tag.

    Please follow this:

    a) Activate your child theme.
    b) Copy category.php into the child theme folder.
    c) Add this code: <div class="swift-category-custom"><p><?php echo category_description(); ?></p></div> before this line <div class="inner-page-wrap <?php echo $page_wrap_class; ?> blog-type-<?php echo $blog_type; ?> clearfix">.

    Let me know, that works for me perfectly for post category pages.

    #220791
    morruu
    Member
    Post count: 106

    Hi David,

    I forgot to write back to you. But your solution worked for me. Thanks 🙂

    Best regards
    Morten

    #220866
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Great thanks to David.
    Mohammad

Viewing 13 posts - 16 through 28 (of 28 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register