Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author krozero

    (@krozero199)

    HI, it depends on your requirement. where do you really want to place it? sidebar, footer area or somewhere else ? if sidebar, paste it inside sidebar.php if somewhere else open the related file and paste it where you want to show it. hope this helps. let me know if you need more help using it. thanks!

    Thread Starter gasfaqs

    (@gasfaqs)

    Thanks for your reply. I’d like to place a widget area just below the title in my home page.
    Ive created a child theme and I installed the wp custom widget area plugin.
    where would I paste the code in my child theme if I wanted a widget area below the title?
    Thanks!

    Plugin Author krozero

    (@krozero199)

    i’m not sure how your home page really look like. code location depends on how your theme looks like and how it was coded. can you share screenshot of your homepage pointing where you want to add widget area? after that may be i can help you place it in right location. thanks!

    Thread Starter gasfaqs

    (@gasfaqs)

    I hope I did this right. The image code is below. my website is https://www.gasfaqs.com in case the image doesn’t work.

    [IMG]https://i59.tinypic.com/npjlgp.png[/IMG]

    sorry, I don’t know how to point to the spot I want the widget area. I’d like it just below the tagline. I’m trying to add a “search bar” there. Hope that helps.
    I’m using Oblique child theme. I’ve only added the code necessary to create a child theme. I’ve added no other code.
    thanks for your help.

    Plugin Author krozero

    (@krozero199)

    ok, so firstly copy the header.php from Oblique theme and drop it inside child theme. then open that header.php file and paste the code you get from plugin : .. i.e <?php dynamic_sidebar( ‘header-widget’ ); ?> at line no: 52 . then add search widget for that area form dashboard Appearance > widgets. hope this solves your problems. ?? thanks!

    Thread Starter gasfaqs

    (@gasfaqs)

    ok, so I did what you said and i’m not seeing any change to my site. I did notice that my widgets are not sure up the sidebar though. not sure if this is a related issue? heres a copy header.php line 52 after I added the code.

    <?php else : //Show only site title and description ?><dynamic_sidebar( ‘Header’);>

    did i do something wrong?

    thanks!

    Plugin Author krozero

    (@krozero199)

    Plugin Author krozero

    (@krozero199)

    plus check if your dynamic_sidebar( ‘Header’) match with one you get form plugin table after clicking “Get code” link. just copy and paste it. if you type it your self recheck if there’s any mistake like (uppercase, lowercase) etc. tx!

    Thread Starter gasfaqs

    (@gasfaqs)

    It worked! Thanks!
    In the future, how would I know which line to paste code if I needed to create another widget area?
    If I wanted to move the search bar down on the page a little further below the tagline?
    Thanks for being patient with me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Where do you paste code to widgetize your theme?’ is closed to new replies.