New Landing How can we help? Themeforest Theme Support Joyn How to set global post header styles?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Joyn
  • #137837
    mhote
    Member
    Post count: 394

    Hi, instead of setting up our post heading styles (ie. background banner and naked light option), is there a way in Joyn to set a ‘default’ for those type of elements?

    #137916
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Unfortunately not at the moment, will suggest it to the development team.
    Thanks for the input.

    -Rui

    #137981
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    We don’t currently have default options for those meta options at this point, but you can make changes to /includes/meta-boxes.php to change the default values. Just search for the name of the field and change the ‘std’ parameter for each.

    – Ed

    #138025
    mhote
    Member
    Post count: 394

    Thanks Ed. Looks fairly simple. But if making changes to below code for example…

    /* Page Title Meta Box
    	================================================== */ 
    	$meta_boxes[] = array(
    		'id' => 'page_heading_meta_box',
    		'title' => __('Page Title', 'swift-framework-admin'),
    		'pages' => array( 'post', 'page', 'portfolio', 'product', 'team', 'galleries' ),
    		'context' => 'normal',
    		'fields' => array(
    			
    			// SHOW PAGE TITLE
    			array(
    				'name' => __('Show page title', 'swift-framework-admin'),    // File type: checkbox
    				'id'   => "{$prefix}page_title",
    				'type' => 'checkbox',
    				'desc' => __('Show the page title at the top of the page.', 'swift-framework-admin'),
    				'std' => $default_show_page_heading,
    			),
    			
    			// PAGE TITLE BACKGROUND COLOR
    			array(
    				'name' => __('Page Title Background Color', 'swift-framework-admin'),
    				'id' => $prefix . 'page_title_bg_color',
    				'desc' => __("Optionally set a background color for the page title.", 'swift-framework-admin'),
    				'type'  => 'color',
    				'std' => '',
    			),
    			
    			// PAGE TITLE TEXT COLOR
    			array(
    				'name' => __('Page Title Text Color', 'swift-framework-admin'),
    				'id' => $prefix . 'page_title_text_color',
    				'desc' => __("Optionally set a text color for the page title.", 'swift-framework-admin'),
    				'type'  => 'color',
    				'std' => '',
    			),	

    Will that apply to all pages and posts? We’re just trying to apply the default setting to Posts. Is there a way to achieve that?

    Also – will existing posts / pages be changed, if making these changes in the file?

    Thank you!

    #138086
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    The code you have highlighted above is for pages, you need to search the file for the POST meta options.

    Unfortunately it will not change for your current posts as you can only change the default value, so future posts will have the desired style by default, but for previous posts you will need to manually edit

    – Kyle

    #138100
    mhote
    Member
    Post count: 394

    Great, thanks Kyle.

    #138104
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. Thanks Kyle.
    Thanks
    Mohammad

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register