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)
-   -   Shorter pagination (menu) bar (http://forum.bytesforall.com/showthread.php?t=23028)

Bruno Jan 21, 2015 10:15 AM

Shorter pagination (menu) bar
 
1 Attachment(s)
With many pages - pagination bar is so long - I have it in 2 rows. See attached img.

Is there a way to have fewer links in the pagination bar and have it in a just one row?

CrouchingBruin Jan 22, 2015 12:11 AM

Did you read the documentation for the bfa_content_nav() function? To find the documentation of the functions which are available, open up any of the virtual Main Template or Sub Template files and click on the tab labeled Limited PHP Code in the upper right corner of the screen.

Bruno Jan 22, 2015 07:15 AM

Thanks. This is kind of general answer, but helpful.

Here are details:

Open : Wp->themes->Montezuma->includes->content_nav.php

and edit line#17

change 'mid_size' => 5 to 'mid_size' => 2

CrouchingBruin Jan 22, 2015 08:53 AM

OK, one of the general rules for modifying Wordpress themes is that you shouldn't modify the theme files directly. If/when the theme gets updated, your modifications will be lost. Instead, for themes other than Montezuma, you should create a child theme.

However, the way that Montezuma is designed, you don't need to create a child theme. Instead, you make changes through the virtual templates. Go to Appearance > Montezuma Options > Main Templates and Sub Templates and read the documentation there. You'll see that the virtual templates follows the Wordpress Template Hierarchy. That is, if you want to make a change to the blog page, you would edit the virtual index.php Main Template (this is where you should have made your change). If you want to change how a single post appears, you would edit the single.php Main Template. The appearance of non-post pages is determined by page.php. Sub templates allow you to make changes to the parts of the larger main templates.

Browse around all of the different sections under Montezuma Options, you will find a lot of documentation there.


All times are GMT -6. The time now is 11:30 AM.

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