Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › How to define by default for all, the next and previous post section
New Landing › How can we help? › Cardinal › How to define by default for all, the next and previous post section
- This topic has 7 replies, 2 voices, and was last updated 10 years by Kyle – SUPPORT.
-
Posted in: Cardinal
-
September 30, 2014 at 10:22 am #115825
How to define by default for all, the next and previous post section?
September 30, 2014 at 10:28 am #115829Hi
Not sure what you mean? Please can you explain and maybe provide a link?
– Kyle
September 30, 2014 at 12:24 pm #115885As I can make the settings the default image for all the blog post.
Attachments:
You must be logged in to view attached files.September 30, 2014 at 12:25 pm #115888You would have to edit the theme files for that, you would need to edit includes/meta-boxes.php
– Kyle
October 1, 2014 at 8:56 am #116229ok, this is the code, but how can I insert it in the child theme?
/* Post Meta Box
================================================== */
$meta_boxes[] = array(
‘id’ => ‘post_meta_box’,
‘title’ => __(‘Post Meta’, ‘swift-framework-admin’),
‘pages’ => array( ‘post’ ),
‘context’ => ‘normal’,
‘fields’ => array(// CUSTOM EXCERPT SECTION
array (
‘name’ => ”,
‘title’ => __(‘Custom Excerpt’, ‘swift-framework-admin’),
‘id’ => “{$prefix}heading_custom_excerpt”,
‘type’ => ‘section’
),// CUSTOM EXCERPT
array(
‘name’ => __(‘Custom excerpt’, ‘swift-framework-admin’),
‘desc’ => __(“You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated. If you use the page builder, then you’ll want to add content to this box.”, ‘swift-framework-admin’),
‘id’ => “{$prefix}custom_excerpt”,
‘type’ => ‘textarea’,
‘std’ => “”,
‘cols’ => ’40’,
‘rows’ => ‘8’,
),// MAIN DETAIL SECTION
array (
‘name’ => ”,
‘title’ => __(‘Main Detail Options’, ‘swift-framework-admin’),
‘id’ => “{$prefix}heading_detail”,
‘type’ => ‘section’
),// PAGE HEADER TYPE
array(
‘name’ => __(‘Post Header Type’, ‘swift-framework-admin’),
‘id’ => “{$prefix}page_header_type”,
‘type’ => ‘select’,
‘options’ => array(
‘standard’ => __(‘Standard’, ‘swift-framework-admin’),
‘naked-light’ => __(‘Naked (Light)’, ‘swift-framework-admin’),
‘naked-dark’ => __(‘Naked (Dark)’, ‘swift-framework-admin’),
),
‘multiple’ => false,
‘std’ => ‘standard’,
‘desc’ => __(‘Choose the type of header that is shown on this post. NOTE: The naked options are only possible when you have the fancy heading enabled, or the media display below set to “Full Width with Title Overlay”.’, ‘swift-framework-admin’),
),// FULL WIDTH MEDIA
array(
‘name’ => __(‘Media Display’, ‘swift-framework-admin’),
‘id’ => “{$prefix}fw_media_display”,
‘type’ => ‘select’,
‘options’ => array(
‘fw-media-title’ => __(‘Full Width with Title Overlay’, ‘swift-framework-admin’),
‘fw-media’ => __(‘Full Width’, ‘swift-framework-admin’),
‘standard-above’ => __(‘Standard (Above content)’, ‘swift-framework-admin’),
‘standard’ => __(‘Standard’, ‘swift-framework-admin’),
),
‘multiple’ => false,
‘std’ => ‘standard’,
‘desc’ => __(‘Choose how you would like to display your selected media – full width (edge to edge) with or without the title overlay, or standard. If you choose the title overlay option, it is recommended that you hide the page title in the page title meta options.’, ‘swift-framework-admin’)
),// MEDIA IMAGE HEIGHT
array(
‘name’ => __(‘Title Overlay Min Height’, ‘swift-framework-admin’),
‘id’ => $prefix . ‘media_height’,
‘desc’ => __(“If you are using the ‘Full Width with Title Overlay’ media display type, you can set a min-height for it here (no px).”, ‘swift-framework-admin’),
‘clone’ => false,
‘type’ => ‘text’,
‘std’ => ‘500’,
),// TITLE OVERLAY TEXT COLOR
array(
‘name’ => __(‘Title Overlay Text Color’, ‘swift-framework-admin’),
‘id’ => $prefix . ‘title_overlay_text_color’,
‘desc’ => __(“Optionally set a text color for the title overlay text.”, ‘swift-framework-admin’),
‘type’ => ‘color’,
‘std’ => ”,
),// CONTENT FORMATTING
array(
‘name’ => __(‘Extra Paragraph Spacing’, ‘swift-framework-admin’),
‘id’ => “{$prefix}extra_paragraph_spacing”,
‘type’ => ‘checkbox’,
‘desc’ => __(‘Check this box to enable extra spacing around paragraph elements within the post content.’, ‘swift-framework-admin’),
‘std’ => 0,
),// INCLUDE AUTHOR INFO
array(
‘name’ => __(‘Include author info’, ‘swift-framework-admin’),
‘id’ => “{$prefix}author_info”,
‘type’ => ‘checkbox’,
‘desc’ => __(‘Check this box to show the author info box on the detail page.’, ‘swift-framework-admin’),
‘std’ => $default_include_author,
),// INCLUDE SOCIAL SHARING
array(
‘name’ => __(‘Include social sharing’, ‘swift-framework-admin’),
‘id’ => “{$prefix}social_sharing”,
‘type’ => ‘checkbox’,
‘desc’ => __(‘Check this box to show social sharing icons on the detail page.’, ‘swift-framework-admin’),
‘std’ => $default_include_social,
),// INCLUDE AUTHOR INFO
array(
‘name’ => __(‘Remove article pagination’, ‘swift-framework-admin’),
‘id’ => “{$prefix}remove_next_prev”,
‘type’ => ‘checkbox’,
‘desc’ => __(‘Check this box to remove the next/previous article pagination on the detail page.’, ‘swift-framework-admin’),
‘std’ => 0,
),// INCLUDE RELATED ARTICLES
array(
‘name’ => __(‘Include related articles’, ‘swift-framework-admin’),
‘id’ => “{$prefix}related_articles”,
‘type’ => ‘checkbox’,
‘desc’ => __(‘Check this box to show related articles on the detail page.’, ‘swift-framework-admin’),
‘std’ => $default_include_related,
),// MISC
array (
‘name’ => ”,
‘title’ => __(‘Misc. Options’, ‘swift-framework-admin’),
‘id’ => “{$prefix}heading_detail”,
‘type’ => ‘section’
),// Extra Page Class
array(
‘name’ => __(‘Extra page class’, ‘swift-framework-admin’),
‘id’ => $prefix . ‘extra_page_class’,
‘desc’ => __(“If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.”, ‘swift-framework-admin’),
‘clone’ => false,
‘type’ => ‘text’,
‘std’ => ”,
),// REMOVE PROMO BAR
array(
‘name’ => __(‘Remove promo bar’, ‘swift-framework-admin’), // File type: checkbox
‘id’ => “{$prefix}remove_promo_bar”,
‘type’ => ‘checkbox’,
‘desc’ => __(‘Remove the promo bar at the bottom of the page.’, ‘swift-framework-admin’),
‘std’ => 0,
),// REMOVE TOP SPACING
array(
‘name’ => __(‘Remove top spacing’, ‘swift-framework-admin’), // File type: checkbox
‘id’ => “{$prefix}no_top_spacing”,
‘type’ => ‘checkbox’,
‘desc’ => __(‘Remove the spacing at the top of the page.’, ‘swift-framework-admin’),
‘std’ => 0,
),// REMOVE BOTTOM SPACING
array(
‘name’ => __(‘Remove bottom spacing’, ‘swift-framework-admin’), // File type: checkbox
‘id’ => “{$prefix}no_bottom_spacing”,
‘type’ => ‘checkbox’,
‘desc’ => __(‘Remove the spacing at the bottom of the page.’, ‘swift-framework-admin’),
‘std’ => 0,
))
);Thank you very much for your help!
October 1, 2014 at 9:00 am #116232I’m afraid you can’t
– Kyle
October 1, 2014 at 8:48 pm #116485Ok, thank you!
October 2, 2014 at 7:00 am #116564No problem
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.