I want to install 2 other " side bar in flexor magazine

Home Forums Feature Request I want to install 2 other " side bar in flexor magazine

  • Question status -
  • Cyril Bellil
    Participant

    I would like to install a top of the sidebar theme, just below the menu and just above posts ( ie between the menu and the posts) and also in the lower part in the sidebar and footer sidebar , I’ve created in the file ” function.php ”

    register_sidebar (array ( 'name' => ' Headerbar Widget '
    ' before_widget ' => ' <div class = " headerbar "> '
    ' after_widget ' => ' </ div> ',
    ' before_title ' => ' <h3> '
    ' after_title ' => ' </ h3> '

    but I do not know what code to insert and where to use it in my theme .

    can you please help me to add these two sidebar ?

    #5066
    Support Staff
    Keymaster

    Hi Cyril,

    you can put something like this in functions.php:

    register_sidebar(array('name'=>'Header Sidebar',
    	        'before_widget' => '<div class="widget %2$s">',
    	        'after_widget' => '</div>',
    	        'before_title' => '<h3>',
    	        'after_title' => '</h3>',
    	    ));

    and then in header.php at the end of file add this:

    <?php dynamic_sidebar( 'header-sidebar' ); ?>

    Now you can drag widgets to header sidebar and they will show.

    For the second sidebar, it’s the same procedure, and you would need to put call for sidebar in sidebar.php file, right before this <div class="clearfix"></div>.
    I’m not sure what you’re trying to achieve, why would you put sidebar there?

    #5067
    Cyril Bellil
    Participant
    This reply has been marked as private.
    #5073
    Support Staff
    Keymaster

    I’ve already answered you in another thread, but you’re missing ‘>’ before .
    You need this:
    <iframe width="100%" height="700px" frameborder="0" scrolling="no" src="http://bettingtracker.net/api/adopteunprono/Cyril/dashboard"></iframe>

    and this:

    <iframe width="100%" height="350px" frameborder="0" scrolling="yes" src="http://bettingtracker.net/api/adopteunprono/cyril/bets"></iframe>

    #5075
    Cyril Bellil
    Participant
    This reply has been marked as private.
    #5076
    Support Staff
    Keymaster

    Don’t say sorry, no problems, we’re here to help! Glad it worked! 🙂

    #5077

You must be logged in to reply to this topic.

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