• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    Before I start just would like to point that we have an active support forum at https://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

    Thread Starter Laudde

    (@laudde)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding widgetarea in theme Shell Lite’ is closed to new replies.