WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Replacing "Leave a Comment" with Page Title?!?? HELP! (2 posts)

  1. sgodar
    Member
    Posted 1 year ago #

    Just like the title says ^^^ I'm trying to replace where it says "Leave a Comment" with:

    Light a Candle for "(title of the page)"

    I can't seem to get the right code in place and it's pissing me off! Lol!

    Here's what I'm working with:

    <h3 id="comments-respond"><?php _e('Light a Candle for <?php echo get_the_title(); ?>','gopress') ?></h3>

    This code ^^^ does not display the title of the page though... Just displays "Light a Candle for "

    What am I missing here!??!

    This isn't doing anything for me either:

    <?php _e('Light a Candle for <?php the_title(); ?>','gopress') ?>

    Any help would be GREATLY appreciated!

    --Scott

  2. sgodar
    Member
    Posted 1 year ago #

    Nevermind I'm an idiot..

    <h3 id="comments-respond"><?php _e('Light a Candle for ','gopress') ?><?php the_title(); ?></h3>

Topic Closed

This topic has been closed to new replies.

About this Topic