Home › Forums › All Other Themes › gravida center titles, fix sidebar
- This topic has 6 replies, 2 voices, and was last updated 7 years, 6 months ago by Sonnal S Sinha.
-
AuthorPosts
-
October 9, 2016 at 5:06 pm #48931
Hello!
I wanted to know how to center all page titles except the home page,
also how I can have a different sidebar for just the contact us page? I couldn’t figure out how to change the sidebar on one page to be different from the rest.
Thanks!
October 10, 2016 at 5:51 am #48974Hi Brandon,
Kindly go to Appearance>>Theme Option>>Basic Setting>>Custom CSS Box
Add this code there:
h1.entry-title, h1.page-title{text-align:center; margin:0 auto;}
Kindly use this plugin for sidebar: https://wordpress.org/plugins/simple-page-sidebars/
Regards,
DaveOctober 11, 2016 at 12:23 pm #49141Hi Dave,
Thanks for the code, but it did not work. The site is tekkittest.com, and I currently have this custom css in place:
.page_head{display:none;}
#slidera { display:none !important;}
#sidebar .widget_wrap iframe { width:100% !important;}
@media screen and (max-width:767px){
.page #slidera, .single #slidera, .archive #slidera, .search #slidera, .error404 #slidera { display:none !important;}
}
@media screen and (max-width:767px) {
.logo img { height:auto !important;}
}
h1.postitle::first-letter, .single_post_content h1::first-letter, h2.postitle::first-letter { color:#494949 !important;}
#footer .footercols1 h3::first-letter, #footer .footercols2 h3::first-letter, #footer .footercols3 h3::first-letter, #footer .footercols4 h3::first-letter { color:#fff !important;}
#topmenu ul { margin:auto; display:table;}Is it possible the code to change the first letter in each title also prevents us changing the text-align?
Thanks
October 11, 2016 at 12:24 pm #49142As for the sidebar plugin, that worked perfectly, thank you.
October 12, 2016 at 9:40 am #49249Hi Brandon,
Kindly add this code in custom css box:
.thn_post_wrap h1 {text-align:center;}
body.home .thn_post_wrap h1 {text-align:left;}Regards,
DaveOctober 12, 2016 at 12:56 pm #49307Worked perfectly!
Thanks, Dave
October 12, 2016 at 12:58 pm #49308🙂
-
AuthorPosts
- The topic ‘gravida center titles, fix sidebar’ is closed to new replies.