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 »

[SOLVED] Edit link style in CSS


  #1  
Old May 31, 2010, 03:18 AM
louisevarre
 
4 posts · May 2010
[SOLVED] Edit link style in CSS

Hi,

I want to style my body links in CSS to get the effect of having a think line (1px) underneath the link (different color than text), which then becomes a line of 3px when hovered, again different color than text. I can do this by:

HTML Code:
a {
	border-bottom:1px solid #cccccc;
	padding-bottom: 2px; 
}
a:visited {
	color: #09C;
	text-decoration: none;
}
a:hover {
	color: #333333;
	border-bottom:3px solid #AD3417;
	padding-bottom: 2px;
	text-decoration: none;
}
a:active {
	color: #006;
	text-decoration: none;
}
a:link {
	text-decoration: none;
But then ALL links in the webpage change, including page titles, blog titles etc. I ONLY want the links in the text to change. Can anyone please help me?

Thanks

Louise
  #2  
Old May 31, 2010, 05:29 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I haven't tested extensively but try adding #middle before the selectors for example
HTML Code:
#middle a
or
HTML Code:
#middle a:visited
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old May 31, 2010, 06:01 AM
louisevarre
 
4 posts · May 2010
Thank you Imiles, but no, it does not work.

See artdelamorena.com

I ONLY want the links to be affected that would normally be affected by editing the links in the theme options....
  #4  
Old May 31, 2010, 06:08 AM
louisevarre
 
4 posts · May 2010
Actually, I stand to be corrected. The sidebar links are now back to normal, i.e. not affected by the new css style to the links. Which is not what I wanted, I wanted those to remain the same as the "normal" links.

The problem is that the page menu, and post titles also have the new link css. Not what I want.

The formatting that I had done to the page menu is gone...

Any help much appreciated!
  #5  
Old Jun 1, 2010, 11:45 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You could try

div.post a:link

... etc. to target links inside posts
  #6  
Old Jun 1, 2010, 01:09 PM
louisevarre
 
4 posts · May 2010
Thank Flynn, but if I understand correctly I would have to add html on each post. This is for a client that already has 1000 + posts, so need something general...

I could probably work around the page menu, by tweaking the css. But what about the page/post title?

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using version 3.4.3 vs. 3.3.3 Style.css?? Craig Mattice Atahualpa 3 Wordpress theme 2 Oct 2, 2009 12:41 PM
Style & edit center column with sorted posts by category calutateo Plugins & Atahualpa 0 Aug 14, 2009 10:43 AM
Style and edit CENTRE COLUMN not working dingo_shadow Atahualpa 3 Wordpress theme 0 Aug 12, 2009 08:40 PM
errors in style.css aninkling Atahualpa 3 Wordpress theme 1 Feb 26, 2009 05:59 PM
edit link on all posts? strangelove Post-Kicker, -Byline & -Footer 6 Feb 18, 2009 03:55 PM


All times are GMT -6. The time now is 12:08 AM.


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