WordPress.org

Ready to get started?Download WordPress

Forums

Adding a link into posts (12 posts)

  1. BennoH
    Member
    Posted 2 years ago #

    I have been using the chain icon to add links into my posts. Upon using this function, it shows up as a link (i.e. blue and underlined) on the 'edit post' page, but upon publishing, the link is missing. Where the link should be there is just normal text. Any ideas/help please anyone?

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    It could be a CSS issue. It's possible that in your theme's CSS the links are not specified to look any different than the normal text. Just a guess.

  3. BennoH
    Member
    Posted 2 years ago #

    Many Thanks for the suggestion Jonas, but upon trying to click where the link should be, there is no link there. Any other ideas?

  4. Jonas Grumby
    Member
    Posted 2 years ago #

    What happens if you look in the HTML editor rather than Visual? Is the link code there?

  5. BennoH
    Member
    Posted 2 years ago #

    Yes the link code is there. I have also tried entering the html code myself, but all to no avail.

  6. BennoH
    Member
    Posted 2 years ago #

    Ah, for some reason, when I click 'read more' the text then becomes a link. But until I click 'read more' the text is just normal text without being a link. Please view http://www.manzatela.com to see what I mean. In the very bottom post entitled 'And all in an ethical fashion', in the sentence, 'please visit our responsible volunteering page...' the text 'responsible volunteering' should be a link.

  7. Jonas Grumby
    Member
    Posted 2 years ago #

    That is because you are displaying the_excerpt. When you click through to the single post, the link should work.

  8. Jonas Grumby
    Member
    Posted 2 years ago #

    So, you can display the_content instead of the_excerpt or insert HTML code into the excerpt dialog box instead of leaving it blank.

  9. BennoH
    Member
    Posted 2 years ago #

    OK, great, it sounds like you have a solution! Unfortunately, I am a bit of a novice when it comes to all of this. Could you please advise me on how to show the_content instead of the_excerpt. I really appreciate your help with all of this!

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    Edit your theme's index.php template file and replace <?php the_excerpt();?> with <?php the_content();?>.

  11. BennoH
    Member
    Posted 2 years ago #

    Thanks for the help esmi, unfortunately this line of code isn't in my index.php template. Might it be written another way, or in another template?

  12. BennoH
    Member
    Posted 2 years ago #

    Might it be this line of code in functions.php? I don't want to randomly start editing...

    include('functions/better-excerpts.php');

Topic Closed

This topic has been closed to new replies.

About this Topic