WordPress.org

Ready to get started?Download WordPress

Forums

Adding widgetarea in theme Shell Lite (3 posts)

  1. Laudde
    Member
    Posted 2 years ago #

    Hello everybody,

    I am using the theme Shell Lite by Emil Uzelac. And I would like to add a new widget area in the upper right.

    Now I just added a new <div> class in header.php and added some CSS-code in de style.css file
    '#header #new-widget-area {
    float:
    margin-top: 40px;
    margin-left: 808px;
    }'

    The problem is, it is not a widget area. I tried to add a new widget area in functions.php and it shows up at the widgets tab in backend, But when I put a widget in there, it just disappears.

  2. Emil Uzelac
    Theme Review Admin
    Posted 2 years ago #

    Hi there,

    Before I start just would like to point that we have an active support forum at http://themeid.com/forum

    - Note: Any customizations directly to Shell or any other Theme out there will be lost in next Theme update unless you're using a Child Theme, please make a note of that.

    This is not just copy + paste modification and it will require few things before you can get it done.

    If new widgets show in WordPress Dashboard that means that you managed to hook the widget from functions.php to WordPress, however the above styles you have look incomplete:

    #header #new-widget-area {
        float:
        margin-top: 40px;
        margin-left: 808px;
    }

    the reason why is very simple. Float: is missing: left, none or right. Having just this will not make your new widget visible.

    margin-left: 808px + 300px widget will push newly created widget outside or behind the content area as well.

    Best ways to replicate what I have done is to open sidebar-home.php and take a look how I added three widgets to home page area.

    Please provide your URL as well.

    Cheers,
    Emil

  3. Laudde
    Member
    Posted 2 years ago #

    Hello Emil,

    Thanks very much. I will hop to the forums that are made for that.
    I hope you/they can help me there.

    Cheers, Laudde

Topic Closed

This topic has been closed to new replies.

About this Topic