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

Viewing 15 posts - 1 through 15 (of 28 total)
  • Posted in: Dante
  • #167436
    morruu
    Member
    Post count: 106

    Hi,

    Is it possible to add the category description from Posts => Categories to the blog category/archive pages?

    I thought about using this function/reference, but can’t figure out where to put the code.

    <?php echo category_description( $category_id ); ?>

    Thanks in advance

    Best regards
    Morten

    #167936
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit category.php file at theme directory.
    Find this code and insert your code just after it:-
    <div class="page-content col-sm-8 clearfix">

    Hope it should help to you.
    Thanks
    Mohammad

    #168059
    morruu
    Member
    Post count: 106

    Hi Mohammad,

    I have tried the solution, but I think it’s not working. Maybe I’m missing something? The blog category description for “Basketball sko” doesn’t appear above the blog post.

    Please see attached screenshots.

    Best regards
    Morten

    Attachments:
    You must be logged in to view attached files.
    #168070
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please add any text with this code like Your name to test.
    Thanks
    Mohammad

    #168184
    morruu
    Member
    Post count: 106

    I have added a category description, but I can still not see it.

    But when I view the website on my mobile, then I can see the text appear in the menu link “basketball sko”.

    Please see the attached file.

    Best regards
    Morten

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

    Hi,

    can you provide ftp access to try to fix it?
    Use the private reply option.

    -Rui

    #168763
    morruu
    Member
    Post count: 106
    This reply has been marked as private.
    #168884
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide specific page url with issue.
    Thanks
    Mohammad

    #168897
    morruu
    Member
    Post count: 106

    Hi Mohammad,

    Please take a look at this blog category page.

    http://www.altombasketball.dk/basketball-sko/

    Best regards
    Morten

    #168915
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I just resolved it. I edited archive.php file.

    Find this code :-
    <div class="page-content clearfix">
    
    Change with:-
    <div class="page-content  clearfix">
    <?php echo category_description(); ?>

    Thanks
    Mohammad

    #168931
    morruu
    Member
    Post count: 106

    Thank you.

    Just to understand it. I have to make the change in both archive.php and category.php?

    What about the issue on tablet and mobile? Maybe it’s a cache problem, but I can still see the category text in the mobile menu on iPhone. See the attachement I posted the 24th of April.

    Best regards
    Morten

    #168932
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Yes, You need to make change in both of the files. Mobile and tablet issue was related with cache so just ignore it.
    Thanks
    Mohammad

    #168960
    morruu
    Member
    Post count: 106

    Hi again,

    Thank you for the support. Now I can see the category text on both pc and mobile. Just waiting for the text to disappear in the mobile menu 🙂

    Best regards
    Morten

    #168968
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Do you want to hide description at mobile devices?
    Thanks
    Mohammad

    #169016
    morruu
    Member
    Post count: 106

    Hi,

    No, I want the description to show up on all platforms.

    The problem is that the the category description is visible in two places on the mobile device (e.g. iPhone). The text is visible on the page above the posts, which is good. The second place the category description is visible is, when I click on the menu icon in the upper right corner. The category description appear right after the link “Basketball sko”. I don’t want the text to be here.

    Please see attached screenshot from my iPhone.

    You wrote earlier it was related to the cache, but I have deleted the cache and deactivated the plugin. The category description is still found in the mobile menu.

    If the best solution is to hide the category description from mobile devices, then the answer to your question is “yes”.

    Best regards
    Morten

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 1 through 15 (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