Wordpress Widgets Doing My Bloody Head In Can Someone assist?

5 replies
Hi, after searching about the internet trying to find a new wordpress theme I finally found one that I like for the moment.

Now I am faced with a new problem.

The wordpress theme that I used has ad boxes at the right hand side and category boxes etc.

Heres what I want, I want to put a box above the ads and categories to display an ebook image and optin boxes below it.

Heres what I did, went into widgets link and added a text widget to sidebar 1 and included the graphic and optin.

Now the problem is that the text widget appears at the bottom of the page and there is no way that I can see for me to get it to the top of the page above the ads...

Please help, getting frustrated...

Aaron.
#assist #bloody #head #widgets #wordpress
  • Profile picture of the author pjCheviot
    Banned
    Aaron

    I would guess that the "ad boxes" are hard coded into the theme and you will need to go into "Appearance" -> "Editor" -> look for the sidebar.php (or similar) file where the coding is for them.

    Your own code would then have to manually inserted ABOVE the positioning for the current ad boxes.

    HTH
    {{ DiscussionBoard.errors[1558907].message }}
    • Profile picture of the author theemperor
      I would think again about using a paid theme, which is generic like headway.
      Signature
      Learn to code faster, and remove the roadblocks. Get stuff done and shipped! PM me and I can help you with programming tutoring, specialising in Web and the following languages: Javascript ~ HTML ~ CSS ~ React ~ JQuery ~ Typescript ~ NodeJS ~ C#.
      {{ DiscussionBoard.errors[1558916].message }}
  • Profile picture of the author cashcow
    Hi,

    In your sidebar.php look for something that looks like this:

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
    <?php endif; ?>

    Not sure if your theme will have it, but that's what mine has. That's what pullsin the widgets so you want to move that to the top and then your widgets will appear before the other stuff.

    You have to be careful though because it could be wrapped in some style code or have other stuff in the middle there and you can really screw up your site if you don't move all the right things. Make sure you make a backup!

    Lee
    Signature
    Gone Fishing
    {{ DiscussionBoard.errors[1558934].message }}
  • Profile picture of the author madison_avenue
    Go to to appearance-editor in the wordpress dashboard, from the click on sidebar.php, then add your image code as the very first element within the sidebar, make sure you add a pair of div tags when you do it: <div>your image code</div>.
    {{ DiscussionBoard.errors[1558955].message }}
    • Profile picture of the author aaronlamont
      Originally Posted by madison_avenue View Post

      Go to to appearance-editor in the wordpress dashboard, from the click on sidebar.php, then add your image code as the very first element within the sidebar, make sure you add a pair of div tags when you do it: <div>your image code</div>.
      Thanks it worked.....
      {{ DiscussionBoard.errors[1559029].message }}

Trending Topics