Please Read First
Troubleshooting Tips
Frequently Asked Questions
Before Posting Please Disable Wp Super Cache Plugin
When Posting Please Include Your URL.
Search Forum Using Google Search Box Above
Forum Video

Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2010
    Location
    Portland, OR
    Posts
    45
    Rep Power
    0

    Default Remove underscore from link in post

    OK, here's one that I just know does not have a simple solution because I've been to the WP forum and I think it's all about internal code which is all Greek to me.

    For SEO purposes, I want to remove the underscore on certain links in posts and on pages. WP simply does not allow it. No matter that I delete the "decoration: underline" code from the link, it still appears.

    I don't want the underscore deleted from all links -- only certain ones. Does anyone have a simple solution? Can a feature be built into Socrates that will take care of this? If it means going into the template code to make a change, could somebody do this for me?

    This is driving me crazy.

    Thanks.

  2. #2
    Join Date
    Jun 2010
    Location
    Maine
    Posts
    7,209
    Rep Power
    12

    Default

    Wordpress uses hypens, not underscores.

    So you're basically saying that your in your post content you've manually added links to outside sites that use underscores?

    Can you share an example of one of your underscore links?

    This has nothing to do with the theme that I can imagine. Really need to see what you're talking about to give a definitive answer.

  3. #3
    Join Date
    Jun 2010
    Location
    Portland, OR
    Posts
    45
    Rep Power
    0

    Default

    I should have said "underline" not "underscore" -- ___________ compared to _ _ _ _ _ _ _. And you're right, this is not a Socrates problem; it's a WordPress problem. Most clickable links are underlined but by eliminating the decoration designation from the code, the underline can be removed, but not in WP. When doing on-page SEO, there are links that you really don't want people to click on so you disguise them which includes eliminating the underline. In WP, I can't find a way to remove the underline from a link. WP puts it in automatically and no matter what you do, it still appears. If you have to remove some code in the style sheets for this to happen, that is something I am very uncomfortable with. I hope this is a better explanation.

  4. #4
    Join Date
    Jun 2010
    Location
    Maine
    Posts
    7,209
    Rep Power
    12

    Default

    You just need to add this to css

    a:link {text-decoration: none;} /* unvisited link */
    a:visited {text-decoration: none;} /* visited link */
    a:hover {text-decoration: none;} /* mouse over link */
    a:active {text-decoration: none;} /* selected link */

  5. #5
    Join Date
    Jun 2010
    Location
    Portland, OR
    Posts
    45
    Rep Power
    0

    Default

    Therein lies the problem. I have no idea where in the world to put it. Once it gets down to adding or deleting code, I'm completely lost.

  6. #6
    Join Date
    Jun 2010
    Location
    Binghamton, NY
    Posts
    2,732
    Rep Power
    8

    Default

    You can put it in the Socrates Styling page CSS box
    Lynn T. Harrison
    Ever Evolving Enterprises
    LynnTHarrison.com (my blog on using WordPress) Testimonials appreciated

  7. #7
    Join Date
    Jun 2010
    Location
    Portland, OR
    Posts
    45
    Rep Power
    0

    Default

    Is this something new that was added to Socrates? I'm not sure which version of the template I currently am using on my site, but iunder the styling tab it doesn't seem to have any place to paste the code.

  8. #8
    Join Date
    Jun 2010
    Location
    Binghamton, NY
    Posts
    2,732
    Rep Power
    8

    Default

    It has been there for the last couple of revisions. If you have an older version you would need to use the appearance editor and add it to the end of the CSS file.
    Lynn T. Harrison
    Ever Evolving Enterprises
    LynnTHarrison.com (my blog on using WordPress) Testimonials appreciated

  9. #9
    Join Date
    Jun 2010
    Location
    Portland, OR
    Posts
    45
    Rep Power
    0

    Default

    If you could please tell me exactly where to add it on the CSS file I would appreciate it. At some point I will update Socrates, but right now I'm in a rush.

    Thanks.

  10. #10
    Join Date
    Jun 2010
    Location
    Binghamton, NY
    Posts
    2,732
    Rep Power
    8

    Default

    In your dashboard under Appearance > Editor. It should open up to style.css. Scroll to the bottom, add the lines and click on Update.
    Lynn T. Harrison
    Ever Evolving Enterprises
    LynnTHarrison.com (my blog on using WordPress) Testimonials appreciated

Similar Threads

  1. How do I remove the attribution link at the bottom?
    By superman408 in forum Official Support
    Replies: 1
    Last Post: 01-18-2012, 08:29 PM
  2. Remove author link at bottom of page
    By guzie in forum Official Support
    Replies: 7
    Last Post: 10-22-2011, 07:41 PM
  3. Replies: 1
    Last Post: 11-04-2010, 08:20 AM
  4. How to remove link from post title?
    By kellinski in forum Official Support
    Replies: 1
    Last Post: 09-26-2010, 05:43 PM
  5. Replies: 2
    Last Post: 06-17-2010, 12:42 PM

Posting Permissions

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