SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding an underline to a link that is generated by my theme.

    I am using RT-Theme 17. On my homepage http://www.gaintalent.com/temp I've got post excerpts that are generated by the theme, and at the end of the excerpts are "Read More" links. Screenshot of the link to which I'm referring:

    download.gif

    I can add an underline to these links in CSS, but then the parentheses get underlined, too, which looks sloppy and is improper. If I could access the code for these links, I could add <u> tags to the word inside the parentheses, and achieve the underline beneath the word only. However, I can't figure out where these links are generated.

    I attribute this to the fact that I don't know php whatsoever. Please advise. (Yes, I know "learn php" is the most basic solution, and I plan to, so keep the snark to a minimum, please and thank you.)

    -Jorge

  2. #2
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    You'll need to open the index.php file in /themes/mytheme/ and find the WordPress loop. You'll see a Permalink function. Inside you'll find the value of that function, remove the parentheses and place them outside the <a> tag.

    Or, if you feel unsure what to do, open index.php, copy and paste the code below a function called "the_content" or "the_excerpt" and post it here (it will have a function called permalink in it).
    Maleika E. A. | Rockatee | Twitter | Dribbble




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •