WordPress.org

Ready to get started?Download WordPress

Forums

Changing the link color on Permalink (7 posts)

  1. kosmonaut
    Member
    Posted 7 years ago #

    I'm using Unsleepable V1.6 on http://blog.kosmonaut.net/. I am having a lot of trouble finding the text effect code in the CSS for the post header/permalink - for example, "The Mojave Phone Booth" on my blog. I think the default color is "333." The hover color is a dark pink. I've gone through "style.css" over and over, and I can't find any colors that come up as "dark pink" (the Unsleepable default) and I can't figure out where the header/permalink text is.

    I'd like to change the hover color from dark pink to something else.

    Any help?

    Many thanks,
    K

  2. whooami
    Member
    Posted 7 years ago #

    .primary h3 a:hover{
           text-decoration: none!important;
           color: #DA1071 !important;
           }
  3. kosmonaut
    Member
    Posted 7 years ago #

    How the heck did I miss that? Thanks so much - fixed.

  4. isayhello
    Member
    Posted 7 years ago #

    i have a similar issue - what if the link style you want to use for permalinks you don't want inside of an h3 tag? I want to use my own a style w/o h3.

  5. whooami
    Member
    Posted 7 years ago #

    then you learn some CSS, and change your stylesheet as needed to affect the links you do want to change.

    http://codex.wordpress.org/CSS
    http://codex.wordpress.org/CSS_Troubleshooting

  6. isayhello
    Member
    Posted 7 years ago #

    thank you but i know css pretty well (my entire site is a tableless layout). there is no h3 tag specified inside of my theme's stylesheet. the permalink template tag i'm using appears to be putting an h3 followed by an a tag. if i try hiding the h3 it actually hides the h3 and a. i need some help with the php that will remove the h3.

    permalinks work as i want with an a style i specified here:

    http://blog.isayhello.net/2007/ (archive.php)

    this is the php that makes it work:

    <span id="post-<?php the_ID(); ?>"><a class="perma" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>

    however, on a page such as this: (index.php)
    http://blog.isayhello.net/about/news/test20june/

    when i insert this php snippet:

    <a class="perma" href="<?php echo get_permalink(); ?>"><?php the_title('', ''); ?></a>

    it outputs my a.perma tag (which doesn't effect get_permalink) and get_permalink outputs an h3 a and corresponding permalink.

    how to get around this?

  7. isayhello
    Member
    Posted 7 years ago #

    never mind on this i realise i guess i had to work with the header tags and all is sorted now.

Topic Closed

This topic has been closed to new replies.

About this Topic