Changing link and button colors?
-
I’ve been using WordPress.com for quite a while, but now I’m switching over to a hosted version on my website instead. I chose the button template because I’m a quilter and button collector. 🙂
My site is here: http://quiltsbylaurel.com/blog
I would like to change all instances of the orange to a turquoise color. I can only change the color of the top title in the customizer though. If I must use Jetpack, I will.
On my phone, I see there’s at least one “button” that is the same orange color. I assume this can also be changed with CSS? Let me know what I need to do to get that done.
Finally, in the settings, I have full text instead of summary selected, but it’s still only showing a summary of my post. The images aren’t showing. Is there a way to fix this?
Thanks so much! I’m looking forward to getting up and running with my new blog. 🙂
-
And now I see when I click that link, the top title is still orange even though I have the turquoise color selected. Why? 😀
Hi there. 🙂
I would like to change all instances of the orange to a turquoise color. I can only change the color of the top title in the customizer though. If I must use Jetpack, I will.
You can change all instances of orange on the theme using some custom CSS:
a, a:visited, .main-navigation a:hover, .main-navigation a:visited:hover, .site-title a, .site-title a:visited, .social-links ul a:hover, a.more-link, a.more-link:hover, .site-footer a:hover, .site-footer a:visited:hover, .comment-meta .comment-metadata a:hover, .comment-meta .comment-metadata a:visited:hover, .bypostauthor > .comment-body:first-of-type .comment-author .avatar { color: #00E5EE; } abbr, acronym { border-bottom: 1px dotted #00E5EE; } .page-links span.active-link, .page-links a:hover span.active-link { background-color: #00E5EE; } #infinite-handle span button:hover, #infinite-handle span button:active, #infinite-handle span button:focus, #infinite-handle span:hover button, #infinite-handle span button:hover { background: #00E5EE; outline: 5px solid #00E5EE; }If you activate Jetpack then enable the Custom CSS module and enter the above by heading to Appearance > Edit CSS. Alternatively, you can try any of the other custom CSS plugins in the repository.
You can also change the value of #00E5EE to any Hex code of your choice. If you’d like to experiement with different colours, try a few Google searches to get a list of Hex codes and their corresponding values. This is the site I got the Hex code for turquoise from:
Let me know if you continue to spot any instances of orange on your site.
Finally, in the settings, I have full text instead of summary selected, but it’s still only showing a summary of my post. The images aren’t showing. Is there a way to fix this?
Button displays summaries, not full text, by default and there isn’t a built in setting to change that.
The simplest way to override this is to copy/paste the Excerpt field on your edit post page, as described here:
https://codex.ww.wp.xz.cn/Excerpt
We can also make some changes to the backend code so that the theme displays the full posts by default, but this is more complex. If you’d like to try this, the first step is for you to set up a child theme. Let me know if you do set up a child theme and I can help from there.
Oh thank you so much for your response! I’ll get these updates done and let you know if I have more questions I can’t figure out. 🙂
So far, I’ve just found one instance where the orange is still there. If you go to this page: http://quiltsbylaurel.com/blog/sample-page/ the orange is still showing up on the top menu for whatever page is active. What do I need to do to fix that part? Thanks! 🙂
Good spot! I also noticed that the mobile menu button turns to orange when clicked on.
The following CSS should change the colour for both of those:
@media only screen and (min-width: 40.063em) .main-navigation .current_page_item > a, .main-navigation .current-menu-item > a, .main-navigation .current_page_ancestor > a { color: #00E5EE; } button:active, button:focus, input[type="button"]:active, input[type="button"]:focus, input[type="reset"]:active, input[type="reset"]:focus, input[type="submit"]:active, input[type="submit"]:focus, #infinite-handle span button:active, #infinite-handle span button:focus { background: #00E5EE; outline: 5px solid #00E5EE; }Hope that’s helpful! 🙂
I’m totally stumped by this one. I pasted in that additional code and it’s still coming up orange in both places – top menu and the mobile button. Any more suggestions? I even downloaded another browser to double check on this computer and I checked on another computer. 🙁
Hi @quiltsbylaurel: I noticed that I missed some surrounding braces from the first snippet, which would have caused the CSS to not work correctly. I’m sorry for that oversight on my part! Could you please try again with the following?
@media only screen and (min-width: 40.063em) { .main-navigation .current_page_item > a, .main-navigation .current-menu-item > a, .main-navigation .current_page_ancestor > a { color: #00E5EE; } } button:active, button:focus, input[type="button"]:active, input[type="button"]:focus, input[type="reset"]:active, input[type="reset"]:focus, input[type="submit"]:active, input[type="submit"]:focus, #infinite-handle span button:active, #infinite-handle span button:focus { background: #00E5EE; outline: 5px solid #00E5EE; }Thanks!
I had thought that might be the problem, but in my tired state last night I couldn’t figure it out. 😀 Thanks! That did fix the top menu on the computer, but the button on my phone is still orange. I’m going to work on a few other things and then come back to this and hopefully you can give it another look or I can figure it out. Thanks so much for your help so far!! 🙂
I had a look and believe that this should be the last of it. Can you try adding the following?
button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, #infinite-handle span button:hover { background: #00E5EE; outline: 5px solid #00E5EE; }Let me know how that goes. 🙂
Hooray! It works! Thanks so much for all your help! 🙂
Yay! I’m so glad I could help out. Feel free to open another thread if anything else comes up.
i’ve used all of the CSS in this post to try and change the links/headers from orange to purple for littlelavenderleaf.com. everything works, but the hover for the “popular tags” section is still orange.
here’s what my code looks like:
a, a:visited, .main-navigation a:hover, .main-navigation a:visited:hover, .site-title a, .site-title a:visited, .social-links ul a:hover, a.more-link, a.more-link:hover, .site-footer a:hover, .site-footer a:visited:hover, .comment-meta .comment-metadata a:hover, .comment-meta .comment-metadata a:visited:hover, .bypostauthor > .comment-body:first-of-type .comment-author .avatar { color: #937e8a; } abbr, acronym { border-bottom: 1px dotted #937e8a; } .page-links span.active-link, .page-links a:hover span.active-link { background-color: #937e8a; } #infinite-handle span button:hover, #infinite-handle span button:active, #infinite-handle span button:focus, #infinite-handle span:hover button, #infinite-handle span button:hover { background: #937e8a; outline: 5px solid #937e8a; } @media only screen and (min-width: 40.063em) { .main-navigation .current_page_item > a, .main-navigation .current-menu-item > a, .main-navigation .current_page_ancestor > a { color: #937e8a; } } button:active, button:focus, input[type="button"]:active, input[type="button"]:focus, input[type="reset"]:active, input[type="reset"]:focus, input[type="submit"]:active, input[type="submit"]:focus, #infinite-handle span button:active, #infinite-handle span button:focus { background: #937e8a; outline: 5px solid #937e8a; } button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, #infinite-handle span button:hover { background: #937e8a; outline: 5px solid #937e8a; }how do i fix the tag part?
Give this a try for the tag cloud widget rollover colour:
.tags-links a:hover, .tags-links a:visited:hover, .widget_tag_cloud a:hover, .widget_tag_cloud a:visited:hover { background-color: #937e8a; } .tags-links a:hover:after, .tags-links a:visited:hover:after, .widget_tag_cloud a:hover:after, .widget_tag_cloud a:visited:hover:after { border-left-color: #937e8a; } .tags-links a:hover:before, .tags-links a:visited:hover:before, .widget_tag_cloud a:hover:before, .widget_tag_cloud a:visited:hover:before { border-top-color: #937e8a; border-bottom-color: #937e8a; }
The topic ‘Changing link and button colors?’ is closed to new replies.
