• Resolved paulgul

    (@paulgul)


    Using the Motion theme, i’ve created several pages, one of them displays a slideshow. On this page (Home) I don’t want the page title displayed but I want the title displayed on other pages.
    I’ve tried using the If..else function and added this to my page.php.

    <?php if (the_title=="Home") :?>
      		<?php else : ?>
    			<div class="posttop">
    				<h2 class="posttitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    			</div>
    		<?php endif; ?>

    But it doesn’t work, it still displays the title on all pages.
    What I’m trying to say is “If page title = ‘Home’ then don’t display anything, if page title = ‘anything else’ then display title.

    Am I on the right tracks or am I completly off – any help appreciated
    Paul

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hiding page title’ is closed to new replies.