Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Overwrite the Default Post Layout No Longer Working with Update

full screensidebar
    • 5 years, 11 months ago rmiller
      Participant

      Expired

      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.

    • 5 years, 11 months ago Ludjon
      Keymaster

      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

    • 5 years, 11 months ago rmiller
      Participant

      Expired

      That fixed it.

      Thank you!

    • 5 years, 11 months ago Ludjon
      Keymaster

      You’re welcome! :)

Viewing 3 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password