Forums

customizing more tag problem in 3.2.1 (6 posts)

  1. GCNLive
    Member
    Posted 7 months ago #

    I have gone to the codex for customizing the more tag and followed the instructions exactly (to insert an image) and when I do, the only thing that shows on the home page of my site is

    ; ?>

    I had a contractor look at my site and he thinks it is not working because of changes made to WP in the current version.

    Can anyone confirm this?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Sorry - your contractor is incorrect. There have been no changes to the more tag coding in recent versions of WordPress.

  3. GCNLive
    Member
    Posted 7 months ago #

    then why would this:


    <?php the_content('Watch the Video...<img src="' . get_bloginfo('template_directory'). '/assets/img/videoIcon.gif" alt="Watch the Video" title="Watch the Video..." />'); ?>

    display this '); ?> on the page?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Impossible to say without seeing the site and the theme's template files. Best guess is that there's a syntax error further up the page. What I do know is that the technique described in Customizing_the_Read_More works perfectly for me in 3.2.1.

  5. GCNLive
    Member
    Posted 7 months ago #

    using the twentyeleven theme

    http://www.jasonlewisshow.com

    so sad that I can't make this work. what I had to do was add an img tag just before the <!--more Watch the Video--> tag. Which gives the desired effect but does not make the img a clickable link to the post.
    And of course the icon image shows up in the post page.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

    Create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

Reply

You must log in to post.

About this Topic