Tagged: x
-
AuthorPosts
-
August 24, 2016 at 6:01 pm #1145499
disindudeParticipantHey there.
Have a client that needs 2 blogs on one site. I figured out a workaround by creating categories, and then utilizing 2 separate archive pages. But I would like to have those pages appear the same as all the other pages with a slider. I did figure out a way to style the pages so the Archive title, and sub text pop out a lil bit more. But I would still like to have continuity through out the site.The site is: http://www.riseandshineretrievers.com
Thanks in advance for any help or tips that may be provided!
August 24, 2016 at 11:01 pm #1146004
Rue NelModeratorHello There,
Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
Thank you.
August 26, 2016 at 8:07 pm #1149062
disindudeParticipantIf you visit the page the second item over on the top menu is entitled “BLOGS” the dropdown there leads to 2 different blog pages. These are archive pages that I am unable to style in anyway really. Across the rest of the site with the exception of the HOME page there is a 300px tall Revolution slider at the top of the page. I would like this on the Archive pages as well. With a different slider on each of those pages. A quick visit to my site should be able to clarify what it is that I am trying to accomplish.
August 27, 2016 at 12:19 am #1149300
ChristopherModeratorHi there,
Archive pages are not editable and their content generate automatically.
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Please add following code in child theme’s functions.php file :
// Add custom content below the masthead // ============================================================================= function custom_content_below_masthead() { ?> <?php if ( is_category() ) : ?> <div class="custom-shortcode"> <?php echo do_shortcode('[rev_slider alias="frontpage"]'); ?> </div> <?php endif; ?> <?php } add_action('x_after_view_global__slider-below', 'custom_content_below_masthead'); // =============================================================================I use [rev_slider alias=”frontpage”] as the shortcode for your slider. If this is not the correct one, you need to replace it.
This will display the slider on all category archive pages, if you want to show only on specific category(ies) pages, you need add your category IDs or names/slugs in is_category() from the code as mentioned in this article: http://codex.wordpress.org/Conditional_Tags#A_Category_Page
Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1145499 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
