Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] change only one link color


  #1  
Old May 21, 2010, 11:39 AM
Alexander
 
20 posts · Jan 2010
Foligno (PG) ITALY
I need to change the color in only one link in my header, it is possible in Atahualpa 3.4.9??

Thanks, Alex
  #2  
Old May 21, 2010, 06:24 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Depends on weither you can construct a unique CSS selector
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 21, 2010, 11:50 PM
Alexander
 
20 posts · Jan 2010
Foligno (PG) ITALY
Uhm... i'm thinking to use custoum fileds, but i don't know if it's possible.
The title is in a page
  #4  
Old May 22, 2010, 12:15 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what is the url?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old May 22, 2010, 12:25 PM
Alexander
 
20 posts · Jan 2010
Foligno (PG) ITALY
www.alexanderbrucolini.com

In the header i need to change the color of "portfolio HD"
  #6  
Old May 22, 2010, 07:42 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
if you look at the generated source you will find
HTML Code:
<li class="page_item page-item-6"><a href="http://www.alexanderbrucolini.it" target="_blank" >Portfolio HD</a></li>
where the 'page-id-6' is unique for the 'Portfolio HD' page, so you can us this in th CSS selector.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old May 23, 2010, 12:10 AM
Alexander
 
20 posts · Jan 2010
Foligno (PG) ITALY
i'm tring to put this

Code:
.page_item page-item-6 {color: red}
in atahualpa (add HTML/CSS inserts ---> CSS Inserts)

but nothing is change... maybe is not right css code
  #8  
Old May 23, 2010, 05:14 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
that is improper CSS since they are both classes use
HTML Code:
.page-item-6 {color: red}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old May 23, 2010, 06:18 AM
Alexander
 
20 posts · Jan 2010
Foligno (PG) ITALY
I try
Code:
.page-item-6 {color: red}
Not work...
  #10  
Old May 23, 2010, 08:58 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Actually it probably is working, but a nother CSS selector is overriding it because it is more specific. You need to code your CSS Selector to make it more specific. Since you want to change the link text for the class 'page-item-6' you should add that into the selector and you may need to add '!important' to the rule if that doen't work. try
HTML Code:
.page-item-6 a {color: red;}
and if that doesn't work use
HTML Code:
.page-item-6 a {color: red !important;}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old May 23, 2010, 09:20 AM
Alexander
 
20 posts · Jan 2010
Foligno (PG) ITALY
Thanks very much! the last code work fine!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to change link color in custom header widget? JFG Atahualpa 3 Wordpress theme 2 Dec 15, 2009 08:25 AM
How change link color in sidebar? Spaceboy Sidebars & Widgets 9 Nov 5, 2009 06:23 PM
Link color ireneeng New Versions, & Updating 1 Oct 30, 2009 09:47 AM
Trying to change link color on one page lilkush RSS, Feeds & Subscribing 2 Aug 11, 2009 03:02 PM
Mailpress: change post link color...can't figgure this out. d_random Sidebars & Widgets 3 Jun 10, 2009 10:11 AM


All times are GMT -6. The time now is 08:17 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.