Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Adding a widget area before the articles in HP


  #1  
Old Mar 1, 2013, 09:29 AM
tralci2013
 
41 posts · Mar 2013
Hi. I would like to add a widget area before the articles feed in HomePage but I do not know how to do it. Here is a picture showing how I would like it to appear (the arrow means where I want it to move to).
  #2  
Old Mar 1, 2013, 10:50 AM
jerryc
 
367 posts · Oct 2012
Florida
Here's how to use the sidebars anywhere. Here's an example of one before and after (the random images in the content area). Juggledad suggested making a template called front-page.php for the home page, and that worked for me.
  #3  
Old Mar 1, 2013, 11:10 AM
tralci2013
 
41 posts · Mar 2013
I understand I have to work on this
<div id="main" class="row">
<div id="content" class="cf col8">
<?php bfa_content_nav( 'multinav1' ); ?>
<?php bfa_loop( 'postformat' ); ?>
<?php bfa_content_nav( 'multinav2' ); ?>
</div>
but still I can't get how. The example you gave me was to create a three area HP. I just need to keep the two area HP but with a plugin on the top of the article flow.
  #4  
Old Mar 1, 2013, 11:37 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by tralci2013
I understand I have to work on this
<div id="main" class="row">
<div id="content" class="cf col8">
<?php bfa_content_nav( 'multinav1' ); ?>
<?php bfa_loop( 'postformat' ); ?>
<?php bfa_content_nav( 'multinav2' ); ?>
</div>
but still I can't get how. The example you gave me was to create a three area HP. I just need to keep the two area HP but with a plugin on the top of the article flow.
Once you understand the MZ grid system, it's easy to add extra pieces that match your layout. If you're using an 8 - 4 layout, put the extra sidebar wherever you want it to appear in your content area, somewhere between the <div class = "col8"> tage and its closing </div> tag.
  #5  
Old Mar 1, 2013, 11:41 AM
tralci2013
 
41 posts · Mar 2013
I am not a PHP expert. How would you add this simple plugin to the top-article-feed area?
  #6  
Old Mar 1, 2013, 11:50 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by tralci2013
How would you add this simple plugin to the top-article-feed area?
Right above this line of code:

Code:
<?php bfa_loop( 'postformat' ); ?>
insert

Code:
<?php dynamic_sidebar( '[your-custom-widget-name]' ); ?>

Quote:
Originally Posted by tralci2013
I am not a PHP expert.
You don't need to know a lot of HTML, CSS, or PHP to customize MZ, but if you don't learn a few of the basics of where to copy, paste, and edit code, you'll be very limited as to how much you can customize it. This is pretty much true with any WP theme.
  #7  
Old Mar 1, 2013, 02:05 PM
tralci2013
 
41 posts · Mar 2013
It's not working. Where do I get the exact name of the widget? Do I have to put the [ ]?
  #8  
Old Mar 1, 2013, 02:10 PM
tralci2013
 
41 posts · Mar 2013
Sorry! IT'S WORKING. THANK YOU!

Last edited by tralci2013; Mar 1, 2013 at 03:10 PM.
  #9  
Old Mar 1, 2013, 03:25 PM
tralci2013
 
41 posts · Mar 2013
Solved solved

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] adding a widget area to the centre column chowders Sidebars & Widgets 4 Sep 9, 2012 06:00 PM
[SOLVED] Adding widget area to home/center column, but not post/page JennyD Center area post/pages 2 Feb 17, 2012 11:35 AM
Adding New Widget Areas & Position Widgets in Area Ogregeek Sidebars & Widgets 11 Jan 7, 2011 09:09 AM
Adding more than one custom widget area to the center column maguai Sidebars & Widgets 9 Mar 1, 2010 03:02 PM
Adding a widget to a header area animeeyez Header configuration & styling 1 Aug 23, 2009 12:04 PM


All times are GMT -6. The time now is 04:20 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.