Community Forums › Forums › Design Tips and Tricks › Full width widget on the home page
Tagged: pasting code in the forum, widgets
This topic contains 6 replies, has 4 voices, and was last updated by John 5 months, 1 week ago.
-
AuthorPosts
-
December 10, 2012 at 12:38 pm #4222
Hi I would like to add a full size widget to my home page just under the bottem 3 widgets as i need to put in plcae quite a large table any ideas how i can do this?
my site is http://www.nicheadvice.co.uk
Also any ideas how i can have a constent widget at the bottem of my other pages very similer to the site below where they have put there terms and conditions
http://www.charcol.co.uk/mortgagecalculator/borrow-amount-mortgage-calculator/
December 10, 2012 at 6:20 pm #4334You would first need to register a new sidebar area in your functions.php file – something like this:
EDIT: Sorry i am having real issues posting code here without the format getting all screwed-up
Then you will need to add that area to wherever you want it. To achieve this you will either need to add something to your home.php if you have one (and you want it on your homepage) or use some conditional logic in your function.php file.
When i add several areas to my homepage i usually do it in 3 stages…adding the actions, creating helper functions to test if the sidebars are active, and the actual functions to output the content, so:EDIT: Sorry i am having real issues posting code here without the format getting all screwed-up
You don’t always need to use a helper function, but that’s the way i do it. You may want to take a look at NickTheGeek’s website for some great tutorials on this kind of stuff…
Let the water under the sky be gathered to one place, and let dry ground appear. Genesis 1:9
December 10, 2012 at 6:41 pm #4340December 10, 2012 at 8:16 pm #4355Here – add this – http://www.briangardner.com/welcome-text-widget/ but you will need to Visual Hook Guide to place it down by the footer for your theme – http://genesistutorials.com/visual-hook-guide/.
Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 13, 2012 at 8:19 am #4933This looks like a mission to do. I thought it might be a simple copy and past job. Thanks for your help but i may have to leave it..
December 13, 2012 at 8:22 am #4934It is a copy paste. Just read his instructions. He tells you exactly where to copy and paste the code.
Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 13, 2012 at 9:43 am #4975Posh John,
The way to paste code here that works for me is to switch to the HTML tab, paste in your code, make sure there are no empty lines, select the code, click the “code” button in the toolbar, and you’re good to go. That should add an opening and closing “code” tag on either end of your code, which you can see in the HTML editor but not in the Visual editor.
I’ve found that I can switch back and forth from Visual to HTML and the code stays like it should.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google
-
AuthorPosts
You must be logged in to reply to this topic.