• Hi Paul Clark,
    I couldn’t find the proper place to post this. My apologies. I would really appreciate some help with your styles_font_menu plugin. Please and thank you.

    I need to make an array from the styles-font-menu plugin output, (the code below doesn’t work) btw~ this bit-o-code does display the (working) font dropdown at the top of every admin page. I just need to make a proper variable array that will pass into the options framework

    $fonts= array( do_action( 'styles_font_menu' ) );

    here are the options framework items I want to populate

    $options[] = array(
    		'name' => __('Select a Title Font', 'options_check'),
    		'desc' => __('Find a Google font to apply to titles', 'options_check'),
    		'id' => 'title_font',
    		'type' => 'select',
    		'options' => $fonts);
    
    $options[] = array(
    		'name' => __('Select a Link Font', 'options_check'),
    		'desc' => __('Find a Google font to apply to links', 'options_check'),
    		'id' => 'link_font',
    		'type' => 'select',
    		'options' => $fonts);
    
    $options[] = array(
    		'name' => __('Select a Text Font', 'options_check'),
    		'desc' => __('Find a Google font to apply to text content', 'options_check'),
    		'id' => 'content_font',
    		'type' => 'select',
    		'options' => $fonts);

    fyi here is a working script example of options select, the variables are set here

    $hide_array = array(
    		'yes' => __('Yes', 'options_check'),
    		'no' => __('No', 'options_check')
    
    	);

    and used here in the framework `

    $options[] = array(
    		'name' => __('Hide RSS Titles', 'options_check'),
    		'desc' => __('Hide RSS Title defaults to  "yes".', 'options_check'),
    		'id' => 'hide_rss',
    		'std' => 'yes',
    		'type' => 'select',
    		'options' => $hide_array);

    `

    https://www.ads-software.com/plugins/menu-social-icons/

  • The topic ‘styles_font_menu’ is closed to new replies.