-
-
Hello,
With the latest update, it has broken pages where I have selected a no sidebar layout under “Overwrite the default post layout”. The issue is that the sidebar appears on those pages. I have updated the “Codeless Framework” plugin to 1.0.1.
If you are aware of this issue, do you have a recommendation on fixing it?
Thank you for your time.
-
Hello,
Please replace this function under functions.php
function codeless_get_page_layout(){ // Default $codeless_page_layout = codeless_get_mod( 'page_overall_layout' ); // Check if query is a blog query if( codeless_current_view() == 'blog' ) $codeless_page_layout = codeless_get_mod( 'bloglayout' ); // Blog Post layout if( codeless_current_view() == 'single_blog' ) codeless_page_layout = codeless_get_mod( 'singlebloglayout' ); // Add single page layout check here if( codeless_get_mod( 'overwrite_layout' ) && codeless_get_mod( 'layout' ) ) $codeless_page_layout = codeless_get_mod( 'layout' ); // if no sidebar is active return 'fullwidth' if( ! codeless_is_active_sidebar() ) $codeless_page_layout = 'fullwidth'; // Apply filter and return $codeless_page_layout = apply_filters( 'codeless_page_layout', $codeless_page_layout ); return $codeless_page_layout; }
Added in update list
Thanks
-
-
-
Viewing 3 reply threads
You must be logged in to reply to this topic.