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

#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!