- This topic has 15 replies, 3 voices, and was last updated 5 years, 9 months ago by Skandha.
-
AuthorPosts
-
August 10, 2018 at 1:00 pm #151432ABrimbleParticipant
Hello,
I would like to have widgets display only on specific pages. Please could you advise how this would be achieved?
I would like the CT Video Embeds to only display on my Home Page.
I would like Featured Content to only display on my News (Posts) page.
I would like CT Gallery Images to Only display on my Gallery Page.
I would like CT Tours to only display on my Live page.I understand that I can display these widgets conditionally in sidebar areas, but I would like to be able have these widgets display across the whole page.
Many Thanks
August 11, 2018 at 3:07 am #151449SkandhaParticipant@abrimble: Please post in your site URL so that I can provide you the CSS for that!
Kind Regards,
SkandhaAugust 13, 2018 at 11:13 am #151546ABrimbleParticipantAugust 14, 2018 at 3:52 am #151626SkandhaParticipant@abrimble: Please setup of all the widgets you want to then I can provide you the CSS to display them only on particular pages.
Kind Regards,
SkandhaAugust 14, 2018 at 4:53 am #151632ABrimbleParticipantHello Skandha,
I have setup my widgets:
The CT Video Embeds currently displays 3 YouTube videos, but I would like to restrict this widget to only the Home Page.
I have set the CT Gallery Images widget on my Gallery Page. At present, I have placed this Widget in the ‘Page Template – Blank Page’ widget area & set the Page template to Blank Page. I would like to be able to use the ‘Default’ page template and only have the CT Gallery Images widgets on my Gallery Page.
I have set the CT Tours widget on my Live Page. I have placed this widget in ‘Page Template – Blank Content Page Area’ & set the Page template to Blank Page. I would like to be able to use the ‘Default’ page template and only have the CT Tours widget on my Live Page.
Many Thanks
August 14, 2018 at 6:48 am #151645SkandhaParticipant@abrimble: Go to => Appearance => Customize => Additional CSS and add the following CSS Code.
/* To display CT Video Embeds only on homepage */ body:not(.home) #ct-video-embed-2 { display:none; }
To display Featured Content only on News Page first you will need to enable Featured Content on the entire site and then use the following CSS Code.
/* To display Featured Content only on News Page */ body:not(.blog) #featured-content { display:none; }
To be able to use the ‘Default’ page template and only have the CT Gallery Images widgets on your Gallery Page and have the CT Tours widget on you Live Page setup the widgets on the widget areas like Before Posts/Pages or After Posts/Pages.
Let me know if this works out!
Kind Regards,
SkandhaAugust 14, 2018 at 8:09 am #151654ABrimbleParticipantThank you Skandha,
I have applied that code successfully.
I have added the CT Gallery Images widget to the After Posts/Pages section, but this now also displays the gallery on my Home, About and News pages. Please could you provide code to only display the gallery widget on my gallery page?
is it something like
body:not(.gallery) #ct-gallery-images {
display:none;
}Many Thanks
August 15, 2018 at 1:34 am #151685SkandhaParticipant@abrimble: To display the gallery only on Gallery page
Go to => Appearance => Customize => Additional CSS and add the following CSS Code.body:not(.page-id-50) #ct-gallery-image-2 { display:none; }
Let me know if this works out!
Kind Regards,
SkandhaAugust 15, 2018 at 5:26 am #151703ABrimbleParticipantHi Skandha,
That has worked how I wanted it. Thank for you for your assistance.
Best Regards
August 15, 2018 at 6:01 am #151705SkandhaParticipant@abrimble: Hello, there, I hope I was able to resolve your issue. If it’s not too much trouble, I have a quick request: could you please leave an honest review?
https://wordpress.org/support/theme/rock-star/reviews/#new-post
Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely appreciated. Thanks, and if there’s anything else at all that I can do to help,
don’t hesitate to let me know. Have a good day! 🙂Kind Regards,
SkandhaFebruary 10, 2019 at 9:39 am #165527jcacheroParticipantHi there! Im working with rock star pro and i think im having the same trobule. I only want to show some widgets on home, not in pages and posts. I want to show on pages and post only the content.
In home i want to show CT About, CT Background Image, CT Video embed, CT Background image, CT Audio, CT Background Image, CT Tours, CT Promotion headline, CT Gallery images and CT Social Icons. All of these must set only at the home page.
Can you provide me the code please? Thanks!
February 10, 2019 at 11:34 pm #165587SkandhaParticipant@jcachero: Please post in your site URL so that I can look into the issue and help you out!
Kind Regards,
SkandhaFebruary 16, 2019 at 12:32 pm #166000jcacheroParticipantHi there, i could solve the problem with the code that you posted up here with the widgets of rockstartheme. Now i want to show only a widget that is not from the theme, is called Gallery only at home, not in posts and pages.
The site is http://www.jorgefuentes.com.ar and the widget of the problem is located after the content. Yo will see 16 images that if you click theme a lightbox gets opened to see the images in full.
Thanks for your answer!!
February 17, 2019 at 11:47 pm #166078SkandhaParticipant@jcachero: Go to => Appearance => Customize => Additional CSS and add the following CSS Code.
body:not(.home) #responsive_lightbox_gallery_widget-2 { display:none; }
Let me know if is what you want!
Kind Regards,
SkandhaFebruary 22, 2019 at 1:11 pm #166459jcacheroParticipantYes! It works!
Thanks!!!
February 24, 2019 at 12:31 pm #166569SkandhaParticipant@jcachero: Hello there, I hope I was able to resolve your issue. If it’s not too much trouble, I have a quick request: could you please leave an honest review?
https://wordpress.org/support/theme/rock-star/reviews/#new-post
Your review will help others know what to expect when they’re lookingfor the support I offer. Even a sentence or two would be hugely appreciated. Thanks, and if there’s anything else at all that I can do to help, don’t hesitate to let me know. Have a good day! 🙂Kind Regards,
Skandha -
AuthorPosts
- The topic ‘Display Widgets Conditionally on Specific Pages’ is closed to new replies.