- This topic has 9 replies, 2 voices, and was last updated 8 years, 8 months ago by Mahesh.
-
AuthorPosts
-
December 29, 2015 at 9:40 pm #81838effessParticipant
Is it possible to use different colors for different page titles? I tried using HTML in the page title field and it worked but unfortunately the code shows in mobile devices.
December 30, 2015 at 10:35 am #81892December 30, 2015 at 10:17 pm #81928effessParticipanthttp://www.sonomalavender.com. I’d like some page titles to be purple, some green and some blue.
January 4, 2016 at 9:36 am #82164MaheshParticipantHi @effess,
Please let me know the colors for the respective pages, then it’ll be easy for me to provide you with the CSS code.
Regards,
MaheshJanuary 4, 2016 at 9:39 pm #82177effessParticipant#a7a475 and #26a4cd
January 5, 2016 at 9:34 am #82223MaheshParticipantHi @effess,
Here is the CSS for two pages, “Magic of Lavender” and “Research Lavender”. Go to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following styles:
#main .type-page.post-1910 .entry-header .entry-title a{ color: #26a4cd; } #main .type-page.post-1950 .entry-header .entry-title a{ color: #a7a475; }
January 7, 2016 at 12:48 am #82346effessParticipantThank you! Can you also please provide the CSS for changing attachment page title colors? Do they also need to use individual ID #s?
January 7, 2016 at 1:00 pm #82372MaheshParticipantHi @effess,
Go to “Dashboard=> Appearance=> Theme Options=> Custom CSS” box and add the following styles:
.image-attachment .entry-container .entry-header h1.entry-title { color: #26a4cd; }
The above style will change all attachment page title to the same color specified as above, but if you want to have different color for different attachment page then you may need to specify ids or class.
For example, to have specific color in “Ibiza Travel Pillow & Sleep Mask” attachment page only, add the following CSS..image-attachment .post-2096 .entry-container .entry-header h1.entry-title { color: #00ff00; }
Regards,
MaheshJanuary 7, 2016 at 10:21 pm #82401effessParticipantIs there a way to do this using class only? (There are a lot of attachment IDs so using class only would be ideal.) Thanks for your help!
January 8, 2016 at 9:29 am #82421MaheshParticipantHi @effess,
Yes, it can be done using class only. The above code I’ve given is also using class only. Use the upper one for changing entire site’s attachment page title to same color. If you want different page to have different color you have to specify the unique class, so you can use the lower one.
Regards,
Mahesh -
AuthorPosts
- The topic ‘Different page title colors?’ is closed to new replies.