Tagged: x
-
AuthorPosts
-
September 20, 2016 at 5:21 pm #1183780
breepearParticipantIs there a way I can add description text below the Category Archive page title?
September 20, 2016 at 5:21 pm #1183782
breepearParticipantThis reply has been marked as private.September 20, 2016 at 10:01 pm #1184123
Prasant RaiModeratorHi There,
Thanks for writing in!
You can simply assign an Archive Title and Sub-title under Post -> Categories > EDIT Category > Archive Title & Archive Subtitle,
Hope this helps,
Have a great day.
September 22, 2016 at 3:46 pm #1186983
breepearParticipantThat option doesn’t exist in the Ethos theme and when I enter a description in the box nothing shows up.
September 22, 2016 at 8:55 pm #1187363
RadModeratorHi there,
Not all stack have the same feature, in ethos, the archive title and description are the only available one. You may change the archive title.
And if you’re integrity, that’s where sub-title is available.
Thanks!
September 26, 2016 at 3:37 pm #1191372
breepearParticipantIs there any way to add in that description section below the title in ethos?
September 26, 2016 at 6:38 pm #1191528
DarshanaModeratorHi there,
Before doing any customizations, you will need to setup a Child Theme first. This allows you to keep your own custom changes separately while updating the main X theme.
Follow the steps below.
#1. Copy the file: x/framework/views/ethos/_landmark-header.php it into your child theme: x-child/framework/views/ethos/_landmark-header.php
#2. Open the the file and locate the following section (near line 65)
<header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo $title; ?></span></h1> </header>#3. Edit the above section as follows:
<header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo $title; ?></span></h1> <p class="p-landmark-desc"> <?php echo category_description(); ?> </p> </header>4) Finally you can style the p-landmark-desc class by adding the CSS rules into your child theme’s style.css file or via Customizer, Custom > CSS section using the menu Appearance -> Customize.
.p-landmark-desc { font-size: 14px; color: #336699; }After setting up your child theme make sure to check our Customization Best Practices Guide.
Hope that helps.
September 28, 2016 at 4:00 pm #1194622
breepearParticipantThank you so much for you help, that did work, but I have a few other questions.
I set up the child theme and was able to edit the header.php file, but when I added the custom CSS rules and tried to change the font size it didn’t work.
Is there also a way to contain that header text within the same frame as the posts below so that the widget bar still remains at the top on the right (see screenshot attached).
September 28, 2016 at 8:11 pm #1194946
LelyModeratorHi There,
Please also add this line on your child theme functions.php :
remove_filter('term_description','wpautop');By default, the result of this
category_description();function is autop. So it goes outside the paragraph tag we have set.Then also update this comment from your child theme style.css file:
// Blog header style */To this:
// Blog header style// Means single line comment /* This is multiple line comments Comment line 2 */Hope this helps.
September 29, 2016 at 3:42 pm #1196317
breepearParticipantIt’s still not allowing me to update the text size or color in the style.css
This is what I have:
// Blog header style */
.p-landmark-desc {
font-size: 40px;
color: #425161;
}September 29, 2016 at 7:45 pm #1196619
DarshanaModeratorHi there,
Please provide us with a link to a sample category description that you have added, so that we can check your issue and assist you with a possible workaround.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1183780 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
