• 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

Magazine pro : How to add a banner just after secondary menu.

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 › Magazine pro : How to add a banner just after secondary menu.

This topic is: not resolved

Tagged: filter, functions, iframe, Magazine Pro, navigation

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 5 months ago by Ritesh Verma.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 8, 2014 at 3:47 am #93930
    Ritesh Verma
    Member

    Hey,

    Child theme : Magazine pro.

    can anyone guide me how to add a iframe script just after secondary menu in this theme, by directly adding it into functions.php.

    I have written this, but have no idea what to do after it.

    add_filter( 'genesis_before_content_sidebar_wrap', 'my_content_hook' );
    function my_content_hook {
    
     
    }
    http://www.joinarmy.me/
    March 8, 2014 at 3:37 pm #93968
    viorelepuran
    Member

    hello
    please try this in functions.php in child theme:

    function sk_move_nav_inside_site_inner() {

    remove_action( 'genesis_after_header', 'pagetitle' );
    add_action( 'genesis_before_content_sidebar_wrap', 'pagetitle' );

    }
    // Add the Page Title section
    add_action( 'genesis_after_header', 'cegg_pagetitle' );
    function cegg_pagetitle() {

    if (is_active_sidebar( 'pagetitle' )) {
    genesis_widget_area( 'pagetitle', array(
    'before' => '<div class="pagetitle widget-area"><div class="wrap"',
    'after' => '</div></div>'
    ) );
    }
    }

    you will get a widget in dashboard, and you can add your script inside that widget.
    Let me know if it worked for you.

    March 8, 2014 at 9:09 pm #94005
    Ritesh Verma
    Member

    Hello Vio,

    This is not working for me, instead it shows an error

    Parse error: syntax error, unexpected 'class' (T_CLASS), expecting ')' in /home/content/p3nexnas03/88/2061388/html/wp-content/themes/magazine-pro/functions.php on line 206

    What i guess is , this function should we somewhat similar to the function used for adding comment policy over comment box.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 2022 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