Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] Adding a widget area before the articles in HP (http://forum.bytesforall.com/showthread.php?t=19772)

tralci2013 Mar 1, 2013 09:29 AM

[SOLVED] Adding a widget area before the articles in HP
 
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).
http://www.picresize.com/images/rsz_...lle_174329.jpg

jerryc Mar 1, 2013 10:50 AM

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.

tralci2013 Mar 1, 2013 11:10 AM

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.

jerryc Mar 1, 2013 11:37 AM

Quote:

Originally Posted by tralci2013 (Post 97400)
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.

tralci2013 Mar 1, 2013 11:41 AM

I am not a PHP expert. How would you add this simple plugin to the top-article-feed area?

jerryc Mar 1, 2013 11:50 AM

Quote:

Originally Posted by tralci2013 (Post 97402)
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 (Post 97402)
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.

tralci2013 Mar 1, 2013 02:05 PM

It's not working. Where do I get the exact name of the widget? Do I have to put the [ ]?

tralci2013 Mar 1, 2013 02:10 PM

Sorry! IT'S WORKING. THANK YOU!

tralci2013 Mar 1, 2013 03:25 PM

Solved solved


All times are GMT -6. The time now is 05:01 PM.

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