• Resolved Tales Scopinho

    (@tales-scopinho)


    Hi, I’m a baby at wp and I downloaded the Enigma theme. I was working on one of my posts and I realised that the “category” button wasn’t a nice idea there. So I opened post-content.php file to see what I could do. Unfortunetly, trying to remove that button, I made a mystake that lead to a parse error: syntax error, unexpected. I don’t know what I did and how can I fix it. Please, can you guys help me?

    <h2><?php if(!is_single(<a href="<?php (the_permalink()); ?> ?>"><?php } ?><?php the_title(); ?></a></h2>

Viewing 4 replies - 1 through 4 (of 4 total)
  • give this a go

    <h2><?php if (!is_single) { ?><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><?php } else { ?><?php the_title(); ?><?php } ?></h2>

    Hi,

    Please don’t apply your changes in theme files.

    Let us know what you changes you want.

    Please make child theme and create post-content.php in child theme directory.

    Now copy code from LINK and paste to post-content.php that you create in child theme directory.

    Save the changes.

    Thanks.

    Thread Starter Tales Scopinho

    (@tales-scopinho)

    Thank all you guys! 🙂

    Hi,

    Most Welcome.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Removing button syntax error’ is closed to new replies.