Homepage › Forum › Product Support › BeHealth › Yolo Blog element: No categories selectable
Tagged: blog, categories
This topic contains 21 replies, has 2 voices, and was last updated by Stephan 3 years, 8 months ago.
Great, that works again now. Thanks a lot!
Now where can I set page options for single testimonial pages? I'd like to change the Page Title Background and the Right Sidebar. There are no page options available beneath a testimonial post in the editor and there are no settings for testimonials in the Theme Options section.
Thanks,
Steve
Hi,
I added the Page Options, you can log in and config for the testimonial post.
Hi tinhbeng,
Thank you very much! Now I can change Page Options on single testimonials.
But is there no possibility to set default page options for testimonials? E.g. in the Behealth -> Theme Options - Pages Setting section? As for Single Blog?
I have more than 30 existing testimonials and it would cause much work to change the page options for every single one. If I could set default page options for all testimonial pages at once it would save me a lot of time.
Thanks,
Steve
Hi,
Currently, the option Testimonial title background image doesn't support in Theme Options.
You want to add an image background for all single testimonial. You can go to the "page-heading.php" (wp-content/themes/yolo-behealth/templates/) and add these lines:
if (is_singular('yolo_testimonial')) {
$page_title_bg_image_url = 'http://dev.yolotheme.com/wordpress/behealth/wp-content/themes/yolo-behealth/assets/images/bg-page-title.jpg';
}
OK, not quite what I need, but an acceptable workaround for the time being. Thank you!
Perhaps you could consider adding default testimonial page options in the next version of the theme.
One last question: Where can I set the sidebar for single testimonials? Currently it shows the Blog Single Page sidebar and I don't want testimonials to show any sidebar at all.
Thanks,
Steve
Hi,
It seems you solved your issue.
Yes. I made a copy of \wp-content\themes\yolo-behealth\templates\single.php and applied the following changes:
To all switch (get_post_type()) statements for $sidebar, $left_sidebar and $right_sidebar I added another case:
case 'yolo_testimonial':
$sidebar = '';
break;
just before the default statement.
I placed this altered copy of single.php in the templates folder of the child theme.
You must be logged in and have valid license to reply to this topic.