Tagged: x
-
AuthorPosts
-
October 27, 2016 at 4:06 am #1232826
yhshin1020ParticipantThis reply has been marked as private.October 27, 2016 at 4:27 am #1232847
Rue NelModeratorHello There,
The setting will affect the global content layout settings. If you have set your pages using the Layout – Left Sidebar, Content Right or Layout – Left Content, Right Sidebar page templates, any of these pages will not be affected thus still display the sidebar.
Hope this helps.
October 27, 2016 at 4:34 am #1232857
yhshin1020ParticipantThis reply has been marked as private.October 27, 2016 at 5:30 am #1232917
Paul RModeratorHi,
To make it work you can add this in your child theme’s functions.php file.
function x_get_content_layout() { $content_layout = x_get_option( 'x_layout_content' ); if ( $content_layout != 'full-width' ) { if ( is_home() ) { $opt = x_get_option( 'x_blog_layout' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( is_singular( 'post' ) ) { $meta = get_post_meta( get_the_ID(), '_x_post_layout', true ); $layout = ( $meta == 'on' ) ? 'full-width' : $content_layout; } elseif ( x_is_portfolio_item() ) { $layout = 'full-width'; } elseif ( x_is_portfolio() ) { $meta = get_post_meta( get_the_ID(), '_x_portfolio_layout', true ); $layout = ( $meta == 'sidebar' ) ? $content_layout : $meta; } elseif ( is_page_template( 'template-layout-content-sidebar.php' ) ) { $layout = 'content-sidebar'; } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) { $layout = 'sidebar-content'; } elseif ( is_page_template( 'template-layout-full-width.php' ) ) { $layout = 'full-width'; } elseif ( is_archive() ) { if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) { $opt = x_get_option( 'x_woocommerce_shop_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } else { $opt = x_get_option( 'x_archive_layout' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } } elseif ( x_is_product() ) { $layout = 'full-width'; } elseif ( x_is_bbpress() ) { $opt = x_get_option( 'x_bbpress_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( x_is_buddypress() ) { $opt = x_get_option( 'x_buddypress_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( is_404() ) { $layout = 'full-width'; } else { $layout = $content_layout; } } else { $layout = $content_layout; } if ( is_page_template( 'template-layout-content-sidebar.php' ) ) { $layout = 'content-sidebar'; } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) { $layout = 'sidebar-content'; } elseif ( is_page_template( 'template-layout-full-width.php' ) ) { $layout = 'full-width'; } return $layout; }Hope that helps.
October 27, 2016 at 5:46 am #1232926
yhshin1020ParticipantThis reply has been marked as private.October 27, 2016 at 5:48 am #1232928
yhshin1020ParticipantThis reply has been marked as private.October 27, 2016 at 6:57 am #1232999
ChristianModeratorGlad it’s sorted out.
October 27, 2016 at 7:29 am #1233043
yhshin1020ParticipantThis reply has been marked as private.October 27, 2016 at 9:41 am #1233221
LelyModeratorHi There,
We can use the following CSS:
.widget_nav_menu .current-menu-item > a { color: red !important; }If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1231022 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
