WordPress.org

Forums

Adding Sidebar (5 posts)

  1. benmandv
    Member
    Posted 1 year ago #

    Hi there

    I'm using the 'Pink Touch 2' theme which holds widgets in the footer. I just wondered if anybody knows how to add a sidebar to this theme?

    My coding knowledge is fairly basic so any help would be greatly appreciated.

    Cheers

  2. shandiz
    Member
    Posted 1 year ago #

    hi
    this is not easy !
    before create a backup.
    see this link : http://www.tastyplacement.com/add-sidebar-wordpress

  3. Yes, as shandiz stated is it not easy. Specially on a pre-existing theme. If you really want to go through with this you will want to start of by creating a child theme so you won't lose any modifications if the theme when the theme gets updated.

    Warning: You will have to know PHP, CSS and HTML and be confident about it. :)

    The next thing you will want to do is register the sidebar(s) in your functions file. You will then have to modify a few PHP files to include that sidebar and add HTML as well. The last step is to style it CSS and make sure that everything still looks the way it should.

  4. benmandv
    Member
    Posted 1 year ago #

    Thanks for the replies.

    I managed to get a sidebar to display but in the main contents part of the site. How do I move it over to the left?

    Do I call the sidebar from the pagetemplate file or contents.php?
    And then as the css is using wrappers, how would i go about style/positioning?

    Many thanks

  5. benmandv
    Member
    Posted 1 year ago #

    Right I've managed to get sidebars to work.

    The only problem now, which is hopefully an easy one. How do I stop the text widget overflowing the sidebar? All other widgets are working well so far.

    Do i have to style the text widget in css?

Topic Closed

This topic has been closed to new replies.

About this Topic