Links on home page
URL to the page in question:
-
In some of my posts, I have links in the first sentence or two. On the post page, they work correctly – linking off to another site. However, when the first few lines are fed in as an abstract on the home page, the links are inactive. I assume the html is getting stripped out, but can this be adjusted?
Jeff,
You’re absolutely right. It does indeed stip out the links and other HTML from the content. There’s an edit you can try and see if it will work for you. I gave it a quick try on my local computer and it seems to work. Here’s what to do:
1) Go to the appearance section and select edit to open up the theme editor.
2) From the list of files on your right, choose functions.php and look for this spot:
$content = strip_tags($content);
3) Delete that line and save your changes.
See if that doesn’t leave your links intact. If you need anything else, just let me know.
Worked like a charm. Thanks for the great support!
Glad to hear it! Let me know if you need anything else.
- The topic ‘Links on home page’ is closed to new replies.