• Resolved khaynes014

    (@khaynes014)


    Would someone be able to look at my sidebar code and help me try and get these floated to the left?
    **update!** I’m noticing on Firefox, they are on the left. But in Chrome, they’re showing on the right.**

    All my sidebars were floated left until I began playing around with some coding on this page, and now all sidebars are on the right. I registered them in my functions.php file with the below code. Is there something in there that is wrong? I’m floating them to the left, but nothing is happening. My theme is making the coding on these very confusing for me.

    /**
    * Add a sidebar.
    */
    function septera_widgets_init() {
    register_sidebar( array(
    ‘name’ => __( ‘Professionals Sidebar’, ‘septera’ ),
    ‘id’ => ‘professionals’,
    ‘description’ => __( ‘Widgets in this area will be shown on professionals pages.’, ‘septera’ ),
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘‘,
    ‘before_title’ => ‘<h2 class=”widgettitle”>’,
    ‘after_title’ => ‘</h2>’,
    ) );

    register_sidebar( array(
    ‘name’ => __( ‘Projects Sidebar’, ‘septera’ ),
    ‘id’ => ‘projects’,
    ‘description’ => __( ‘Widgets in this area will be shown on professionals pages.’, ‘septera’ ),
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘‘,
    ‘before_title’ => ‘<h2 class=”widgettitle”>’,
    ‘after_title’ => ‘</h2>’,
    ) );

    register_sidebar( array(
    ‘name’ => __( ‘All Professionals Sidebar’, ‘septera’ ),
    ‘id’ => ‘all-professionals’,
    ‘description’ => __( ‘Widgets in this area will be shown on the professionals search page.’, ‘septera’ ),
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘‘,
    ‘before_title’ => ‘<h2 class=”widgettitle”>’,
    ‘after_title’ => ‘</h2>’,
    ) );
    }
    add_action( ‘widgets_init’, ‘septera_widgets_init’ );

    • This topic was modified 4 years, 10 months ago by khaynes014.

    The page I need help with: [log in to see the link]

  • The topic ‘Sidebar Help’ is closed to new replies.