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

Community Forums Forums Design Tips and Tricks Magazine pro : How to add a banner just after secondary menu.

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Ritesh Verma 7 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #93930

    Ritesh Verma
    Member
    Post count: 9

    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/
    #93968

    viorelepuran
    Member
    Post count: 25

    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.

    #94005

    Ritesh Verma
    Member
    Post count: 9

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.