Home Forums Newsletter Plugin Support Why can't the excerpt have links?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33058
    marcioehrlich
    Participant

    Users complained to me for not being able to tap/click the excerpt or the thumbnail to get to the article.
    I’ve saved the theme to a customized one and tried to change the theme.php code to allow more hrefs:

    <tr>
      <td style="font-size: 14px; color: #666; font-family: Arial, Helvetica, sans-serif">
        <?php if ($image != null) { ?>
         <a href="<?php echo get_permalink();?>" target="_tab"><img src="<?php echo $image; ?>" alt="" align="left"/></a>
        <?php } ?>
        <p><strong><a target="_tab" href="<?php echo get_permalink(); ?>" style="font-size: 18px; color: #000; font-family: Tahoma, Geneva, sans-serif; text-decoration: none"><?php the_title(); ?></a></strong></p>
        <a target="_tab" href="<?php echo get_permalink(); ?>" style="text-decoration:none; color:#666"><?php the_excerpt(); ?></a>
       </td>            
    </tr>
    

    When I preview a new newsletter, all links are apparently there. The mouse-over the excerpt, for instance, changes the cursor to the hand.
    But when I save the newsletter, the excerpts loose their links.
    Why is that?
    Thanks.
    Marcio

    • This topic was modified 5 years, 3 months ago by marcioehrlich.
    #33062
    Stefano
    Keymaster

    The code seems correct, you should check the generated code. Could you?

    Thank you, Stefano.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.