Community Forums › Forums › Archived Forums › Design Tips and Tricks › Full width widget on the home page
Tagged: pasting code in the forum, widgets
- This topic has 6 replies, 4 voices, and was last updated 12 years, 2 months ago by
John.
-
AuthorPosts
-
December 10, 2012 at 12:38 pm #4222
[email protected]
MemberHi 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 #4334Posh John
ParticipantYou 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...
Thus the heavens and the earth were completed in all their vast array. Genesis 2
December 10, 2012 at 6:41 pm #4340Posh John
ParticipantRemoved badly formatted code...
Thus the heavens and the earth were completed in all their vast array. Genesis 2
December 10, 2012 at 8:16 pm #4355AnitaC
KeymasterHere - 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/.
Need help with customization or troubleshooting? Reach out to me.
December 13, 2012 at 8:19 am #4933[email protected]
MemberThis 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 #4934AnitaC
KeymasterIt is a copy paste. Just read his instructions. He tells you exactly where to copy and paste the code.
Need help with customization or troubleshooting? Reach out to me.
December 13, 2012 at 9:43 am #4975John
ParticipantPosh 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
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.