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] Suggestion: add new argument to bfa_content_nav (in 1.2.3) (http://forum.bytesforall.com/showthread.php?t=22622)

marklevine Jul 9, 2014 07:25 PM

[SOLVED] Suggestion: add new argument to bfa_content_nav (in 1.2.3)
 
Suggestion for a future release... For the second time while using Montezuma, I've had to hack the file content_nav.php to change the value passed to 'mid_size' from 5 to a smaller number. I did this to get the navigation tabs to fit in the columns allocated. No problem to hack but now my client must be cautious when upgrading.

I suggest a second optional parameter to bfa_content_nav(). The best solution would be to pass an array containing some or all the values to be passed into paginate_links. For example, I would call

Code:

bfa_content_nav('multinav1', array('mid_size' => 3));
/* except I don't think that you don't allow arrays

Alternately, expose one or more of the parameters for paginate_link, especially 'mid_size') with an order list such as

Code:

bfa_content_nav('multinav1', 3);

juggledad Jul 10, 2014 04:34 AM

Good idea, but have you looked to see if there is still an issue when there is a large (>11) number of pages?

With the default Montezuma theme settigs, using mid_size = 3 and having more than 10 pages causes the 'next' to go to the next line. I'm thinking that maybe we should just change the default to '2' and not add in another option.

Comments?

marklevine Jul 10, 2014 09:01 AM

I adjusted the font-size and padding through CSS and was able to get 'mid-size'=>3 to fit in a col8 division. It doesn't look as good as the original styling though. I'd recommend adding an argument because, in this case, one size does NOT fit all. Best regards!

juggledad Jul 16, 2014 06:56 AM

This has been fixed in version 1.2.3 which will make it's way into the WordPress theme review process, so it should show up in a week or so. There will be some on screen doc but basically you can use something like this:
HTML Code:

                <?php bfa_content_nav( 'mid_size=2&id=menunav1' ); ?>


All times are GMT -6. The time now is 07:43 PM.

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