This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
I have read other entries and found something about the child-theme.php, but i cannot find that file in my ccs. Thank you
Hi
Please install the theme child and uncomment the code , specify the desired name .
<?php
/************* LOAD REQUIRED SCRIPTS AND STYLES *************/
function pixchild_loadCss(){
wp_enqueue_style('style', get_stylesheet_uri() );
}
add_action('wp_enqueue_scripts', 'pixchild_loadCss'); //Load All Css
add_filter( 'register_post_type_args', 'rename_post_type_slug', 10, 2 );
function rename_post_type_slug( $args, $post_type ) {
if ( 'pixad-autos' === $post_type ) {
$args['rewrite']['slug'] = 'auto'; // <-- RENAME HERE
}
return $args;
}
Thanks