Tagged: x
-
AuthorPosts
-
August 3, 2016 at 1:19 am #1114986
AgencyixParticipantHi, sorry to reach out to you with something that is seemingly so simple.
I have the home page set as home & updates set as the blog page. I would like to add a main side bar to the updates page and also on the the blog articles. For some reason I can’t get it to appear. Also after logging in and going too view page it is not displaying the editing bar at the top of the page. And I have to hit the back button to get back into editing.
I will be happy to provide the login credentials.
WordPress 4.5.3 running X – Child Theme theme.
August 3, 2016 at 1:20 am #1114989
AgencyixParticipantThis reply has been marked as private.August 3, 2016 at 5:28 am #1115202
Paul RModeratorHi,
To achieve that, 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_home() || is_singular('post')) { $layout = 'content-sidebar'; } return $layout; }Hope that helps
August 3, 2016 at 4:16 pm #1116097
AgencyixParticipantHi,
Thanks for code to put into the site. I have another site biult on the integrity stack and it works fine. I think there is some error in the code I would like you to help me correct. I only have a couple of pages and I am surprised I’m already having an error. The edit bar is not loading when I go to pages. So I have to log back in everytime.
Thank you for your help
Nathan
August 3, 2016 at 5:36 pm #1116176
AgencyixParticipantThis reply has been marked as private.August 3, 2016 at 9:17 pm #1116554
Rue NelModeratorHello Nathan,
The previously given username and password is no longer working. Could you please give us the latest credentials so that we can check your settings and code?
For the meantime, please make sure that you have set in your customizer, Appearance > Customize > Layout and Design > Content Layout to have a sidebar. Setting this to fullwidth would make all the pages in your site with no sidebar at all.
Please let us know how it goes.
August 3, 2016 at 10:27 pm #1116637
AgencyixParticipantThis reply has been marked as private.August 4, 2016 at 2:07 am #1116845
Paul RModeratorHi Nathan,
I added the code given in #1115202 in your child theme’s functions.php file and I can confirm it’s not working
in your site.Though I have tested it on several test sites and its working on my end.
You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
If that doesn’t help please provide us your ftp login in private reply.
August 4, 2016 at 3:32 am #1116930
AgencyixParticipantPaul,
I really appreciate you and your teams talent and effort to resolve user caused issues. I was able to find a restore back up on the server and decided since I am now 99% sure the issue was caused by my configuration of hidewp plugin. I restored the site to go back a day before I installed that plugin and things are back to good. Thank you for your hard work & talent. I will continue to buy licenses and recommend the theme.
August 4, 2016 at 4:15 am #1116966
Paul RModeratorYou’re most welcome and thank you for your continued support.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1114986 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
