• Hi – trying to add a dynamic sidebar at the top of the theme …to the right of the title and description …an extra widget area in twenty eleven.can`t find clear instructions on the subject and would appreciate help here . i know its adding code in functions.php but cant find the code and where to place it . elaborate explanation would help many of us novices to word press

    my plane it to add some widgets there

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • You will want to check out register_sidebar() and register_sidebars() to create the sidebars for your site. These can go in your functions.php file almost anywhere, but I’d suggest keeping them with yur current sidebar calls.

    Once you’ve done that you need to add the sidebar to your template file/files. To do this, the easiest way is to follow what is already in your template files. The main function that’s used is dynamic_siebar(0 so look for that and you’ll see how it’s been done.

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

    Thread Starter MOSHECO

    (@greenfuture)

    thanks for the tips

    i manged to install a new side bar to the header BUT now need to style it
    https://etgarlcc.com/
    its under the title and i need it to be elongated and to the far right end of the white header area… How can i style it to look like long rectangular to the right of title ?

    Help!!!

    one possiblity:
    #sidebar-primary{position:absolute;right:0;top:0;width:33%;}

    try to use a tool such as Firebug https://getfirebug.com/ to find the involved styles; then use for instance css positioning https://www.w3schools.com/css/css_positioning.asp

    it is beyond the scope of this forum to assist with detailed fundamental formatting questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to add extra widget area in twenty eleven’ is closed to new replies.