This topic has 11 replies, 3 voices, and was last updated 10 years by dorisarnaud.
-
Author
-
November 5, 2014 at 15:09 #34181dorisarnaudParticipant
Hello
I would like remove breadcrumb and page title from post page.
I do not want to show the page title in the main content. I want remove it
How can I do?
Thank youNovember 6, 2014 at 21:32 #34378KamalModeratorHi, You can remove breadcrumb from post page by doing the following,
1. Go to edit page> Theme General Setting> Title Section.
2. Check the hide the title checkbox
3. Select “hidden” from the options beside Breadcrumb.
I hope this will hide breadcrumb and title from the post page. Please let me know if this works for you.
Thanks.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 6, 2014 at 21:40 #34379dorisarnaudParticipantHello
I don’t see theme General Setting on a custom post
Theme General setting is available on page or post but not on custom post
How can I do to have theme General setting on a custom post
Thank youNovember 6, 2014 at 23:25 #34396KamalModeratorHi, Can you please tell me the name of the custom post you are referring to? It would be great if you might give me a screenshot here. By the way, if you meant portfolio custom post then, you can hide breadcrumb and title from the Portfolio Setting section under the text editor. However, you are welcome to ask me any question if the above info does not help. Thanks.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 7, 2014 at 02:06 #34453dorisarnaudParticipantHello
I’ve created custom post with WCK – Custom Fields and Custom Post Types Creator plugin for hotel listings
and The section : theme General Setting is not available
I join a screenshotThank you
Attachments:
You must be logged in to view attached files.November 7, 2014 at 15:09 #34521sharmstrModeratorIf you want kleos General Settings available to custom post types, you have to add support for them. See this topic
https://archived.seventhqueen.com/forums/topic/add-kleo-meta-box-to-custom-post-type#post-28801
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 7, 2014 at 15:36 #34531dorisarnaudParticipantHello
I’ve copied the code below in functions.php file – child theme but it doesn’t work
Do I need to change some lines of code?add_filter( ‘kleo_meta_boxes’, ‘kleo_my_metaboxes’ );
function kleo_my_metaboxes( array $meta_boxes ) {// Start with an underscore to hide fields from custom fields list
$prefix = ‘_kleo_’;$meta_boxes[] = array(
‘id’ => ‘general_settings’,
‘title’ => ‘Theme General settings’,
‘pages’ => array( ‘custom_post_name’ ), // Post type
‘context’ => ‘normal’,
‘priority’ => ‘default’,
‘show_names’ => true, // Show field names on the left
‘fields’ => array(
array(
‘name’ => ‘Media’,
‘desc’ => ”,
‘id’ => ‘kleomedia’,
‘type’ => ‘tab’
),
array(
‘name’ => ‘Slider’,
‘desc’ => ‘Used when you select the Gallery format. Upload an image or enter an URL.’,
‘id’ => $prefix . ‘slider’,
‘type’ => ‘file_repeat’,
‘allow’ => ‘url’
),
array(
‘name’ => ‘Video oEmbed URL’,
‘desc’ => ‘Used when you select Video format. Enter a Youtube, Vimeo, Soundcloud, etc URL. See supported services at http://codex.wordpress.org/Embeds.’,
‘id’ => $prefix . ’embed’,
‘type’ => ‘oembed’,
),array(
‘name’ => ‘Video Self hosted(mp4)’,
‘desc’ => ‘Used when you select Video format. Upload your MP4 video file. Setting a self hosted video will ignore Video oEmbed above.’,
‘id’ => $prefix . ‘video_mp4’,
‘type’ => ‘file’,
),
array(
‘name’ => ‘Video Self hosted(ogv)’,
‘desc’ => ‘Used when you select Video format. Upload your OGV video file.’,
‘id’ => $prefix . ‘video_ogv’,
‘type’ => ‘file’,
),
array(
‘name’ => ‘Video Self hosted(webm)’,
‘desc’ => ‘Used when you select Video format. Upload your WEBM video file.’,
‘id’ => $prefix . ‘video_webm’,
‘type’ => ‘file’,
),array(
‘name’ => ‘Audio’,
‘desc’ => ‘Used when you select Audio format. Upload your audio file’,
‘id’ => $prefix . ‘audio’,
‘type’ => ‘file’,
),
array(
‘name’ => ‘Display settings’,
‘desc’ => ”,
‘id’ => ‘kleodisplay’,
‘type’ => ‘tab’
),
array(
‘name’ => ‘Centered text’,
‘desc’ => ‘Check to have centered text on this page’,
‘id’ => $prefix . ‘centered_text’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),
array(
‘name’ => ‘Top bar status’,
‘desc’ => ‘Enable/disable site top bar’,
‘id’ => $prefix . ‘topbar_status’,
‘type’ => ‘select’,
‘options’ => array(
array(‘value’ => ”, ‘name’ => ‘Default’),
array(‘value’ => ‘1’, ‘name’ => ‘Visible’),
array(‘value’ => ‘0’, ‘name’ => ‘Hidden’)
),
‘value’ => ”
),
array(
‘name’ => ‘Hide Header’,
‘desc’ => ‘Check to hide whole header area’,
‘id’ => $prefix . ‘hide_header’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),
array(
‘name’ => ‘Hide Footer’,
‘desc’ => ‘Check to hide whole footer area’,
‘id’ => $prefix . ‘hide_footer’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),
array(
‘name’ => ‘Hide Socket area’,
‘desc’ => ‘Check to hide the area after footer that contains copyright info.’,
‘id’ => $prefix . ‘hide_socket’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),
array(
‘name’ => ‘Custom Logo’,
‘desc’ => ‘Use a custom logo for this page only’,
‘id’ => $prefix . ‘logo’,
‘type’ => ‘file’,
),
array(
‘name’ => ‘Custom Logo Retina’,
‘desc’ => ‘Use a custom retina logo for this page only’,
‘id’ => $prefix . ‘logo_retina’,
‘type’ => ‘file’,
),
array(
‘name’ => ‘Transparent Main menu’,
‘desc’ => ‘Check to have Main menu background transparent.’,
‘id’ => $prefix . ‘transparent_menu’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),array(
‘name’ => ‘Title section’,
‘desc’ => ”,
‘id’ => ‘kleoheader’,
‘type’ => ‘tab’
),
array(
‘name’ => ‘Hide the title’,
‘desc’ => ‘Check to hide the title when displaying the post/page’,
‘id’ => $prefix . ‘title_checkbox’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),
array(
‘name’ => ‘Breadcrumb’,
‘desc’ => ”,
‘id’ => $prefix . ‘hide_breadcrumb’,
‘type’ => ‘select’,
‘options’ => array(
array(‘value’ => ”, ‘name’ => ‘Default’),
array(‘value’ => ‘0’, ‘name’ => ‘Visible’),
array(‘value’ => ‘1’, ‘name’ => ‘Hidden’)
),
‘value’ => ”
),array(
‘name’ => ‘Hide information’,
‘desc’ => ‘Check to hide contact info in title section’,
‘id’ => $prefix . ‘hide_info’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
)
)
);
return $meta_boxes;
}November 7, 2014 at 15:43 #34533sharmstrModeratorYes, you need to change
COPY CODE‘pages’ => array( ‘custom_post_name’ ), // Post type
to your post type name.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 7, 2014 at 15:50 #34537sharmstrModeratorAlso, keep in mind that you are overriding a kleo function which might be updated in the future. You’ll have to compare after every kleo update to make sure you’re using the latest code. I’m using a beta copy of the next kleo update and I can tell you that you’ll for sure have to recopy that function over to your functions.php file so that your cpt will have the latest and greatest functionality.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 7, 2014 at 15:58 #34539dorisarnaudParticipantHello
If I have several custom post types
do I need to indicate all on the same line by separating them with a comma like this?‘pages’ => array (‘ adventures, hotels, vacation), // Post Type
November 7, 2014 at 16:04 #34540sharmstrModeratorYou need single quotes around each type
(‘adventures’, ‘hotels’, ‘vacation’)
Anyway we can filter that with something like
COPY CODEadd_filter('kleo_meta_boxes','kleo_my_custom_post_types'); function kleo_my_custom_post_types( $pages ) { $pages[] = 'custom_post_type_name'; return $pages; }
If not now can you cook up some magic and make it so in the future?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The topic ‘Breadcrumb and page title’ is closed to new replies.