Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Font Size & Face setting reset on save in Page Menu Bar options


  #1  
Old Apr 9, 2009, 05:05 PM
RobertSGold
 
9 posts · Apr 2009
I am new to html, new to WP, and new to BFA, so thanks for indulgence if this is a stupid question.

When I change the Font Size & Face setting in the Page Menu Bar options to:

14px "comic sans ms", arial, sans-serif

and save it, the only thing saved is:

14 px

but the font change does take effect. But if I resave the options page again, I lose my font settings, and only get the 14px.

Any ideas?

Thanks.
  #2  
Old Apr 9, 2009, 06:18 PM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
You need to have the CSS styles in the proper format.

14px "comic sans ms", arial, sans-serif should be:

font-family: Comic Sans MS, arial, sans-serif;
font-size: 14px;
color: #000000;

The semi-colons are critical.

I put a color in, but I guess you can leave that out and it'll be whatever the theme's default is.
  #3  
Old Apr 9, 2009, 07:09 PM
RobertSGold
 
9 posts · Apr 2009
Thanks for your quick reply, but I am afraid your solution didn't work. Tried several variants on using the font-family: and font-size: tags, with and without semi-colons, and had varying results that weren't successful.

Your example didn't enquote Comic Sans MS, so the font wasn't recongnized with that syntax.

P.S. I was just following the sample syntax adjacent to the entry field.
  #4  
Old Apr 9, 2009, 08:46 PM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
I wonder if WP doesn't like Comic Sans for some reason. Did you try some other font faces?
  #5  
Old Apr 9, 2009, 09:22 PM
RobertSGold
 
9 posts · Apr 2009
the comic sans face actually works, and I am using it elsewhere on my site with no problem.

I think the problem is in the code for the options page.
  #6  
Old Apr 10, 2009, 07:41 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
This is a bug, thank you for finding. To fix it in your version edit functions/bfa_theme_options.php
Replace
PHP Code:
    array(    "name" => "Font Size & Face",
            
"category" => "page-menu-bar",
            
"id" => $shortname."_page_menu_font",
            
"std" => "11px Arial, Verdana, sans-serif",
            
"type" => "text",
            
"size" => "30"
            
"info" => "Set both the font size and the font face for the menu items. Enclose font face names with a 
            space in quotes, i.e.:<br /><code>12px \"comic sans ms\", \"courier new\", arial, sans-serif</code><br />
            <br />Don't use semicolons here."
), 
with

PHP Code:
    array(    "name" => "Font Size &amp; Face",
            
"category" => "page-menu-bar",
            
"id" => $shortname."_page_menu_font",
            
"std" => "11px Arial, Verdana, sans-serif",
            
"type" => "text",
            
"size" => "30"
            
"editable" => "yes"
            
"info" => "Set both the font size and the font face for the menu items. Enclose font face names with a 
            space in quotes, i.e.:<br /><code>12px \"comic sans ms\", \"courier new\", arial, sans-serif</code><br />
            <br />Don't use semicolons here."
), 
the same for the category menu bar:
Replace
PHP Code:
    array(    "name" => "Font for Category Menu Bar",
            
"category" => "cat-menu-bar",
            
"id" => $shortname."_cat_menu_font",
            
"std" => "11px Arial, Verdana, sans-serif",
            
"type" => "text",
            
"size" => "30"
            
"info" => "Set both the font size and the font face for the menu items. Enclose font face names 
            with a space in quotes, i.e.:<br /><code>12px \"comic sans ms\", \"courier new\", arial, sans-serif</code>
            <br /><br />Don't use semicolons here."
), 
with

PHP Code:
    array(    "name" => "Font for Category Menu Bar",
            
"category" => "cat-menu-bar",
            
"id" => $shortname."_cat_menu_font",
            
"std" => "11px Arial, Verdana, sans-serif",
            
"type" => "text",
            
"size" => "30"
            
"editable" => "yes"
            
"info" => "Set both the font size and the font face for the menu items. Enclose font face names 
            with a space in quotes, i.e.:<br /><code>12px \"comic sans ms\", \"courier new\", arial, sans-serif</code>
            <br /><br />Don't use semicolons here."
), 
  #7  
Old Apr 10, 2009, 10:54 PM
RobertSGold
 
9 posts · Apr 2009
Flynn:

Perfect.

Excellent!

Many thanks!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font size in drop down menu of page bar ftf79 Page & Category Menu Bars 2 Apr 28, 2011 01:50 PM
Background for Page Menu Bar and size iworks Page & Category Menu Bars 2 Oct 18, 2009 06:53 AM
Font size in page menu (left side integrated as widget) Tigger Page & Category Menu Bars 8 Aug 27, 2009 08:49 PM
Bug: Atahualpa 3.0 Theme Options > Page Menu Bar bseppa Page & Category Menu Bars 5 May 9, 2009 09:59 PM
Atahualpa 3.0 Theme Options > Page Menu Bar - Page Error on Save bseppa Atahualpa 3 Wordpress theme 9 Dec 12, 2008 06:35 PM


All times are GMT -6. The time now is 01:52 AM.


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