• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Layout question – how to get content before content sidebar wrap

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Layout question – how to get content before content sidebar wrap

This topic is: not resolved

Tagged: hooks

  • This topic has 1 reply, 1 voice, and was last updated 9 years, 10 months ago by studionoobly.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 14, 2015 at 10:26 am #159393
    studionoobly
    Member

    I know it's an odd place to have content before the actual place where content is supposed to go but that' the layout of this project.

    The code I am using in my functions file, works on the default blog archive page but not on any other page let alone the template pages.

    // Move page title on taxonomy pages
        add_action( 'genesis_meta', 'nb_move_category_title' );
        function nb_move_category_title() {
          if( is_archive() ) {
            remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );
            add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_taxonomy_title_description', 15 );
          }
            elseif ( is_page_template('page-connect.php') ) {
              remove_action( 'genesis_entry_header', 'genesis_do_post_title');
              remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    
              add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_post_title');
              add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_post_content');
            }
        }

    With the above I can get the post title to go above the content sidbar_wrap but the content it's self disappears?

    Any help with this most appreciated.

    http://n/a
    July 15, 2015 at 11:53 am #159490
    studionoobly
    Member

    Still haven't figured out how to get the content of a page to be the full width of a page and have a sidebar fit snug underneath (you might want this if you have a metabox or custom field that is under the first block of text and then the sidebar is to the right or left of your metabox or CF) the entry content but on custom post type archive pages if you want the title and introduction text to do that then I used the following:

      add_action( 'genesis_meta', 'nb_move_category_title' );
      function nb_move_category_title() {
      // wp_reset_query();
        if( is_archive() || is_category() || is_tag() || is_tax() ) {
          remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );
          add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_taxonomy_title_description' );
        
        // For Custom Post Types
          add_filter( 'genesis_cpt_archive_intro_text_output', 'wpautop' );
          remove_action( 'genesis_before_loop', 'genesis_do_cpt_archive_title_description' );
          add_action( 'genesis_before_content', 'genesis_do_cpt_archive_title_description' );
        }
      }
  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble