Home › Forums › Jevelin Theme › custom template file
Home › Forums › Jevelin Theme › custom template file
Hi @Achim,
I hope you are well today and thank you for your questions.
Could you please share me the page URL from your site where it is displaying so that i can help you to achieve it?
You can use following plugin to display custom sidebar.
https://wordpress.org/plugins/custom-sidebars/
Best regards,
Shufflehound team
Hello sh,
the sidebar is running now, but the rest u can see here: https://v18.motorrad-holzleitner.de/fahrzeuge/
Solution for this topic
You can achieve it by adding the following CSS code in the Custom CSS code option of your theme on the below path.
Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code
.post-type-archive-fahrzeuge .titlebar-title { display: none; } .post-type-archive-fahrzeuge span.bread-archive { text-transform: capitalize; }
Of course, but this is no solution for the Browser Tab
You didn’t mention anything about Browser Tab in your question so could you please tell me a bit more in detail what you are trying to achieve so that I can help you?
To change it, you have to develop custom code in the child theme of Jevelin theme as shared in the following page.
https://gist.github.com/philipdowner/1263202/677665d8a506cc8f3a972744fcf5361445b0b04e
Should I paste this code to the functions.php? Or directly into my template file?
You have to modify the code and add it in the functions.php file of Jevelin child theme.
this won’t work for me, sorry
Then would you mind if i log in to your site and help you to make it work? If this is ok then could you please share me your site log in details privately by adding them in the box having text “Click here to share private content. Only you and forum moderators will be able see it.”?
no idea, how we can solve this?
You have created custom template file so would you mind if i log in to your site and help you to make it work? If this is ok then could you please share me your site log in details privately by adding them in the box having text “Click here to share private content. Only you and forum moderators will be able see it.”?
yes, please!
Solution for this topic
I made the code work in your child theme file by changing it as following.
add_filter('pre_get_document_title', 'archive_titles', 99); function archive_titles($orig_title) { global $post; $post_type = $post->post_type; $types = array( array( 'post_type' => 'fahrzeuge', //Your custom post type name 'title' => 'Test1234' //The title tag you'd like displayed ), ); if ( is_archive() ) { //FIRST CHECK IF IT'S AN ARCHIVE //CHECK IF THE POST TYPE IS IN THE ARRAY foreach ( $types as $k => $v) { if ( in_array($post_type, $types[$k])) { return $types[$k]['title']; } } } else { //NOT AN ARCHIVE, RETURN THE ORIGINAL TITLE return $orig_title; } }
yes, but only for the Browser Tab – not for the post title. Mhm, seems to be a stupid problem 🙂
Yes it works for Browser Tab and this is what you wanted to achieve as you have asked above.
Right?
Solution for this topic
You can change it developing custom code as shared in the following topic.
https://support.shufflehound.com/forums/topic/titlebar-background-color/#post-8085