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 8 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
April 27, 2015 at 1:15 pm #169040
Hi,
Please use this custom css code:-.menu-item-desc{ display:none !important; }
Thanks
MohammadApril 27, 2015 at 5:24 pm #169143Hi,
It looks very nice now.
Thank you for the support.Best regards
MortenApril 27, 2015 at 5:47 pm #169151No problem. Thanks Mohammad.
-RuiSeptember 14, 2015 at 1:38 pm #212723Hello 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
MortenAttachments:
You must be logged in to view attached files.September 14, 2015 at 1:58 pm #212729Hi,
Try to purge any cache plugin or the browser cache and try again.
-Rui
September 15, 2015 at 7:29 am #213009I 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
MortenSeptember 15, 2015 at 3:01 pm #213187Hello,
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.
September 15, 2015 at 5:13 pm #213260Hello 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
MortenSeptember 16, 2015 at 12:55 pm #213597Hi 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.
September 16, 2015 at 6:13 pm #213817Hi 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
MortenAttachments:
You must be logged in to view attached files.September 18, 2015 at 12:42 pm #214493Hi,
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.
October 14, 2015 at 12:43 pm #220791Hi David,
I forgot to write back to you. But your solution worked for me. Thanks 🙂
Best regards
MortenOctober 14, 2015 at 5:07 pm #220866Hi,
Great thanks to David.
Mohammad -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.