Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Add category description on category/archive pages
New Landing › How can we help? › Themeforest Theme Support › Dante › Add category description on category/archive pages
Tagged: add text, archive page, Category, description
- This topic has 27 replies, 4 voices, and was last updated 9 years by
Mohammad – SUPPORT.
-
Posted in: Dante
-
April 22, 2015 at 6:26 pm #167436
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
MortenApril 24, 2015 at 4:42 am #167936Hi,
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
MohammadApril 24, 2015 at 9:48 am #168059Hi 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
MortenAttachments:
You must be logged in to view attached files.April 24, 2015 at 9:56 am #168070Hi,
Please add any text with this code like Your name to test.
Thanks
MohammadApril 24, 2015 at 12:26 pm #168184I 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
MortenAttachments:
You must be logged in to view attached files.April 24, 2015 at 2:27 pm #168224Hi,
can you provide ftp access to try to fix it?
Use the private reply option.-Rui
April 26, 2015 at 7:52 pm #168763This reply has been marked as private.April 27, 2015 at 7:46 am #168884Hi,
Please provide specific page url with issue.
Thanks
MohammadApril 27, 2015 at 8:16 am #168897Hi Mohammad,
Please take a look at this blog category page.
http://www.altombasketball.dk/basketball-sko/
Best regards
MortenApril 27, 2015 at 9:14 am #168915Hi,
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
MohammadApril 27, 2015 at 9:39 am #168931Thank 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
MortenApril 27, 2015 at 9:41 am #168932Hi,
Yes, You need to make change in both of the files. Mobile and tablet issue was related with cache so just ignore it.
Thanks
MohammadApril 27, 2015 at 10:35 am #168960Hi 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
MortenApril 27, 2015 at 10:41 am #168968Hi,
Do you want to hide description at mobile devices?
Thanks
MohammadApril 27, 2015 at 11:56 am #169016Hi,
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
MortenAttachments:
You must be logged in to view attached files. -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.