Forum Replies Created
-
Author
-
clynParticipant
1 – I did not any code on my test site but show all author archieve post (also custom post types). If i want to add this code, to where?
2 – I have SSD VDS server. So, my test site (include all kleo demo) and my real site is on same server. Does it make any problem?
clynParticipantActually the problem is, if people (author or other role) can choose sidebar, they effect my left or right side advertisment… I really solve this π
thanksclynParticipantYes working with custom post types. I check on themeforest item sales comment and supports… Maybe, their support solve problem, but i read lots of bug about this pluging on comments… So i am testing my mirror web site, dont install my real site. I can wait them… Thank you so much…
clynParticipantActually,
If activate Templatera, Visual Composer working (Backend or fronted button, ) on page and post but not showing product, portfolio or kleo testiminiol. If i deactive templatera, Visual composer coming to screen all type posts…
clynParticipantOh, i did everything.
1 – Check user role editor, VC role editor, CPT, WP Admin UI
2 – Deactivate all pluging except VC and templatera and try it but not working.I wrote them, waiting answer… Maybe upgrade VC, i dont know, we will see when you update VC to 4.9… Whatevery, i will add manuelly save under my templates π
Thanks
clynParticipantwill stop only specific custom post types such as music custom post type. Think about my author creating albums and giving track list and using embed video, but always video will stop 29 sec…
clynParticipanti did before but now its ok π i think i need more coffee… sorry wasting your time…
thanks
clynParticipantyes sure π … At the moment you never sleep, what a fast customer relationship ..Great…
Thank
clynParticipantDoesnt matter, i am just trying to visual composer (myteplate) for author posts. On pc or other wide screen, there is no problem. But on mobile, text start after pictures…
Sorry my english π
clynParticipantHi again,
I reinstall wordpress and upload last version Kleo. You said before WP3 cache.
I want to ask?1 – Which one is better WP3 cTotal cache or WP Super Cache (https://wordpress.org/plugins/wp-super-cache/)?
2 – Should I use https://wordpress.org/plugins/autoptimize/ pluging? This plugging recommended WP Super Cache?Thanks…
clynParticipantOk..I want to change some names on visual composer…
Attachments:
You must be logged in to view attached files.clynParticipantBecause, i delete all files, plugings and wordpress. Laura, when i finish install wordpress and my filters, i will write again.
thanksclynParticipantIts work, thanks. At the momement i have page speed question, should i created new topic?
clynParticipantadd_filter(‘bp_core_fetch_avatar_no_grav’, ‘__return_true’);
i must add this code before bp-custom.php , but which folder? after i must add second code to fuction.php.Why this so difficult just dont want avatar another site π , somethimes loading this avatar from gavatar.com 3- seconds or more….
Thanks
clynParticipantAh sorry, at the moment you are so fast, Sunday π .
Attachments:
You must be logged in to view attached files.clynParticipantIts solved when i clik checkbox on this picture. Its true way?
Actually i am afraid to upload, because, i am not great wordpress user and dont want to lost my data. Actually i installled new version 1 month ago…
Attachments:
You must be logged in to view attached files.clynParticipantDear Admin, i designed new 404 page (within wordpress) and i copy below code 404.php and deleted kleo codes. And its redirecting to my new wordpress 404, its working wery well. But what could be the problem future…Sorry my english
<?php
function go ($url, $time = 1){ //
if ($time) header(“Refresh: {$time}; url={$url}”);
else header(“Location: {$url}”);
}//
go(“https://www.domain.net/sorry”, 1); //// or
go(“https://www.domain.net/sorry”);?>
clynParticipanti am wasting your time..so i need to wait you to correct code (above my lib/metabox.php) to copy for child fucntion.php
thanks
clynParticipantDo i really need to add Kleo Child Fuction.php ? Because i only added my custom post names to lib/metabox.php and nothing copy to kleo child fuction, and its working very well? Maybe we dont need anything to add kleo child, becuase maybe you upgrade the theme?
Thanks and sorry my english
clynParticipantok no problem, when you have time for pc π thanks… I think some symbol is problem when i cut or copy, this } or π
clynParticipantI think, i cant cut or copy very well because giving php error. Could you copy above my lates lib code please….
clynParticipantActually topic code its working but when i go to kleo/lib/metabox.php and copy to code and paste kleo child fuction (also adding custom post names) giving some errors. I saw there client metabox or testiminiol metabox could they give error?
This is my latest lib/metabox code…. Thank you so much….
<?php
/**
* Include and setup custom metaboxes and fields.
*
*/add_filter( ‘kleo_meta_boxes’, ‘kleo_metaboxes’ );
/**
* Define the metabox and field configurations.
*
* @param array $meta_boxes
* @return array
*/
function kleo_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( ‘post’,’page’ , ‘event-art’ , ‘portfolio-audition’ , ‘cinema-movie’ , ‘world-festivals’ , ‘architecture-catalog’ , ‘music-album-singer’ , ‘visual-arts’ , ‘organization-company’ , ‘art-resume-cv’ , ‘art-jobs-careers’ , ‘theater-dance’ ), // Post type
‘context’ => ‘normal’,
‘priority’ => ‘default’,
‘show_names’ => true, // Show field names on the left
‘fields’ => array(
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’ => ‘Transparent Main menu color’,
‘desc’ => ”,
‘id’ => $prefix . ‘transparent_menu_color’,
‘type’ => ‘select’,
‘options’ => array(
array(‘value’ => ‘white’, ‘name’ => ‘White’),
array(‘value’ => ‘black’, ‘name’ => ‘Black’)
),
‘value’ => ‘white’
),
array(
‘name’ => ‘Social share’,
‘desc’ => ‘Display social share at bottom of the single page.’,
‘id’ => $prefix . ‘blog_social_share’,
‘type’ => ‘select’,
‘options’ => array(
array(‘value’ => ”, ‘name’ => ‘Default’),
array(‘value’ => ‘1’, ‘name’ => ‘Visible’),
array(‘value’ => ‘0’, ‘name’ => ‘Hidden’)
),
‘value’ => ”
),array(
‘name’ => ‘Title section’,
‘desc’ => ”,
‘id’ => ‘kleoheader’,
‘type’ => ‘tab’
),
array(
‘name’ => ‘Section Layout’,
‘desc’ => ”,
‘id’ => $prefix . ‘title_layout’,
‘type’ => ‘select’,
‘options’ => array(
array(‘value’ => ”, ‘name’ => ‘Default’),
array(‘value’ => ‘regular’, ‘name’ => ‘Regular’),
array(‘value’ => ‘center’, ‘name’ => ‘Centered’),
array(‘value’ => ‘right_breadcrumb’, ‘name’ => ‘Right Breadcrumb’)
),
‘value’ => ”
),
array(
‘name’ => ‘Custom page title’,
‘desc’ => ‘Set a custom page title here if you need.’,
‘id’ => $prefix . ‘custom_title’,
‘type’ => ‘text’,
),
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’
),
array(
‘name’ => ‘Top Padding’,
‘desc’ => ‘Put a value without px. Example: 20<br>Default value is taken from Theme options – Header – Title/Breadcrumb section’,
‘id’ => $prefix . ‘title_top_padding’,
‘type’ => ‘text’,
),
array(
‘name’ => ‘Bottom Padding’,
‘desc’ => ‘Put a value without px. Example: 20<br>Default value is taken from Theme options – Header – Title/Breadcrumb section’,
‘id’ => $prefix . ‘title_bottom_padding’,
‘type’ => ‘text’,
),
array(
‘name’ => ‘Text Color’,
‘desc’ => ‘Override the default text color as set in Theme options – Styling options – Title’,
‘id’ => $prefix . ‘title_color’,
‘type’ => ‘colorpicker’,
‘value’ => ”
),
array(
‘name’ => ‘Background Image’,
‘desc’ => ‘Choose a background image for the section.’,
‘id’ => $prefix . ‘title_bg’,
‘type’ => ‘file’,
‘bg_options’ => ‘yes’
),
array(
‘name’ => ‘Background Color’,
‘desc’ => ‘If an image is not set the color will be used’,
‘id’ => $prefix . ‘title_bg_color’,
‘type’ => ‘colorpicker’,
‘value’ => ”
),array(
‘name’ => ‘Media’,
‘desc’ => ”,
‘id’ => ‘kleomedia’,
‘type’ => ‘tab’
),
array(
‘name’ => ‘Show media on post page’,
‘desc’ => ‘If you want to show image/gallery/video/audio before the post on single page’,
‘id’ => $prefix . ‘post_media_status’,
‘type’ => ‘select’,
‘options’ => array(
array(‘value’ => ”, ‘name’ => ‘Default’),
array(‘value’ => ‘1’, ‘name’ => ‘Yes’),
array(‘value’ => ‘0’, ‘name’ => ‘No’)
),
‘value’ => ”
),
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’ => ‘Video Self hosted Poster’,
‘desc’ => ‘Used to show before the video loads’,
‘id’ => $prefix . ‘video_poster’,
‘type’ => ‘file’,
),array(
‘name’ => ‘Audio’,
‘desc’ => ‘Used when you select Audio format. Upload your audio file’,
‘id’ => $prefix . ‘audio’,
‘type’ => ‘file’,
)
)
);$meta_boxes[] = array(
‘id’ => ‘post_meta’,
‘title’ => ‘Theme Post Settings’,
‘pages’ => array( ‘post’ ), // Post type
‘context’ => ‘normal’,
‘priority’ => ‘default’,
‘show_names’ => true, // Show field names on the left
‘fields’ => array(array(
‘name’ => ‘Hide post meta’,
‘desc’ => ‘Check to hide the post meta when displaying a post’,
‘id’ => $prefix . ‘meta_checkbox’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),
array(
‘name’ => ‘Related posts’,
‘desc’ => ‘Display related posts at bottom of the single post display’,
‘id’ => $prefix . ‘related_posts’,
‘type’ => ‘select’,
‘options’ => array(
array(‘value’ => ”, ‘name’ => ‘Default’),
array(‘value’ => ‘1’, ‘name’ => ‘Visible’),
array(‘value’ => ‘0’, ‘name’ => ‘Hidden’)
),
‘value’ => ”
),
),
);$meta_boxes[] = array(
‘id’ => ‘post_layout’,
‘title’ => ‘Post Layout’,
‘pages’ => array( ‘post’, ‘product’, ‘portfolio’ ), // Post type
‘context’ => ‘side’,
‘priority’ => ‘default’,
‘show_names’ => false, // Show field names on the left
‘fields’ => array(array(
‘name’ => ‘Post layout’,
‘desc’ => ”,
‘id’ => $prefix . ‘post_layout’,
‘type’ => ‘select’,
‘options’ => array(
array(‘value’ => ‘default’, ‘name’ => ‘Default’),
array(‘value’ => ‘right’, ‘name’ => ‘Right Sidebar’),
array(‘value’ => ‘left’, ‘name’ => ‘Left sidebar’),
array(‘value’ => ‘no’, ‘name’ => ‘Full width, no sidebar’),
array(‘value’ => ‘3lr’, ‘name’ => ‘3 columns, Right and Left sidebars’),
array(‘value’ => ‘3ll’, ‘name’ => ‘3 columns, 2 Left sidebars’),
array(‘value’ => ‘3rr’, ‘name’ => ‘3 columns, 2 Right sidebars’),
),
‘value’ => ‘right’
),),
);$meta_boxes[] = array(
‘id’ => ‘header_content’,
‘title’ => ‘Header content(optional)’,
‘pages’ => array( ‘post’, ‘page’, ‘product’ ), // Post type
‘context’ => ‘normal’,
‘priority’ => ‘default’,
‘show_names’ => false, // Show field names on the left
‘fields’ => array(array(
‘name’ => ‘Header content’,
‘desc’ => ‘This will be displayed right after the menu. Shortcodes are allowed’,
‘id’ => $prefix . ‘header_content’,
‘type’ => ‘textarea’,
),),
);$meta_boxes[] = array(
‘id’ => ‘bottom_content’,
‘title’ => ‘Bottom content(optional)’,
‘pages’ => array( ‘post’, ‘page’, ‘product’ ), // Post type
‘context’ => ‘normal’,
‘priority’ => ‘default’,
‘show_names’ => false, // Show field names on the left
‘fields’ => array(array(
‘name’ => ‘Bottom content’,
‘desc’ => ‘This will be displayed right after the generated page content ends. Shortcodes are allowed’,
‘id’ => $prefix . ‘bottom_content’,
‘type’ => ‘textarea’,
),),
);$meta_boxes[] = array(
‘id’ => ‘clients_metabox’,
‘title’ => __(‘Clients – link’, ‘kleo_framework’),
‘pages’ => array( ‘kleo_clients’ ), // Post type
‘context’ => ‘normal’,
‘priority’ => ‘default’,
‘show_names’ => false, // Show field names on the left
‘fields’ => array(
array(
‘name’ => ‘Client link’,
‘desc’ => ‘http://example.com’,
‘id’ => $prefix . ‘client_link’,
‘type’ => ‘text’,
),
)
);$meta_boxes[] = array(
‘id’ => ‘testimonials_metabox’,
‘title’ => __(‘Testimonial – Author description’, ‘kleo_framework’),
‘pages’ => array( ‘kleo-testimonials’ ), // Post type
‘context’ => ‘normal’,
‘priority’ => ‘high’,
‘show_names’ => false, // Show field names on the left
‘fields’ => array(
array(
‘name’ => ‘Author description’,
‘desc’ => ”,
‘id’ => $prefix . ‘author_description’,
‘type’ => ‘text’,
),
)
);//Custom menu
$kleo_menus = wp_get_nav_menus();
$menu_options = array();
$menu_options[] = array( ‘value’ => ‘default’, ‘name’ => ‘Site default’ );
foreach ( $kleo_menus as $menu ) {
$menu_options[] = array( ‘value’ => $menu->slug, ‘name’ => $menu->name );
}$meta_boxes[] = array(
‘id’ => ‘page_menu’,
‘title’ => ‘Main menu options’,
‘pages’ => array( ‘page’, ‘post’ ), // Post type
‘context’ => ‘side’,
‘priority’ => ‘default’,
‘show_names’ => true, // Show field names on the left
‘fields’ => array(array(
‘name’ => ‘Custom menu’,
‘desc’ => ”,
‘id’ => $prefix . ‘page_menu’,
‘type’ => ‘select’,
‘options’ => $menu_options,
‘value’ => ‘default’
),
array(
‘name’ => ‘Hide Shop’,
‘desc’ => ‘Check to hide the Shop icon in the main menu’,
‘id’ => $prefix . ‘hide_shop_icon’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),
array(
‘name’ => ‘Hide Search’,
‘desc’ => ‘Check to hide the Search icon in the main menu’,
‘id’ => $prefix . ‘hide_search_icon’,
‘type’ => ‘checkbox’,
‘value’ => ‘1’
),),
);// Add other metaboxes as needed
return $meta_boxes;
}add_action( ‘init’, ‘initialize_meta_boxes’, 9999 );
/**
* Initialize the metabox class.
*/
function initialize_meta_boxes() {if ( ! class_exists( ‘kleo_Meta_Box’ ) ) {
require_once trailingslashit( KLEO_DIR ) . ‘metaboxes/init.php’;
}
} -
AuthorPosts