• Resolved prorank

    (@prorank)


    Hi

    Probably sounds like a really stupid question but my page titles aren’t showing up, I’ve had a look around the forum and everyone else is searching how to hide them, anyone have any ideas whats wrong or the code I need?

    Info:

    Site: https://www.prorank.co.uk
    Issue: Page titles appearing like this: | prorank.co.uk
    Pages: /privacy & /cookies etc

    1, I have these pages blocked in robots.txt from the sitemap because they are generic pages.
    2, The post titles/tag titles are displaying fine i.e; Post/Tag Title | Prorank.co.uk
    3, Some other stuff on the page doesn’t work either like the bullet points.

    Here’s the code from the page.php file

    <?php $mts_options = get_option(MTS_THEME_NAME); ?>
    <?php get_header(); ?>
    <?php if ($mts_options['mts_breadcrumb'] == '1') { ?>
    	<div class="breadcrumb" xmlns:v="https://rdf.data-vocabulary.org/#"><?php mts_the_breadcrumb(); ?></div>
    <?php } ?>
    <div id="page" class="single">
    	<article class="<?php mts_article_class(); ?>">
    		<div id="content_box" >
    			<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    				<div id="post-<?php the_ID(); ?>" <?php post_class('g post'); ?>>
    					<div class="single_page">
    						<header>
    							<h1 class="title entry-title"><?php the_title(); ?></h1>
    						</header>
    						<div class="post-content box mark-links entry-content">
    							<?php the_content(); ?>
    							<?php wp_link_pages(array('before' => '<div class="pagination">', 'after' => '</div>', 'link_before'  => '<span class="current"><span class="currenttext">', 'link_after' => '</span></span>', 'next_or_number' => 'next_and_number', 'nextpagelink' => __('Next','mythemeshop'), 'previouspagelink' => __('Previous','mythemeshop'), 'pagelink' => '%','echo' => 1 )); ?>
    						</div><!--.post-content box mark-links-->
    					</div>
    				</div>
    				<?php comments_template( '', true ); ?>
    			<?php endwhile; ?>
    		</div>
    	</article>
    	<?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Any suggestions? Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • As per the Forum Welcome, I would ask for support from where you purchased the theme from, we also don’t have access to all commercial themes making it very difficult to offer help, so perhaps asking people who own the theme on their support forums may yield better results in your search for assistance.

    It does appear that your Pages are not covered by the conditional checks within the page title function (wherever that may be), I would think this is why there is nothing displayed before the | on pages.

    Hope this helps.

    Thread Starter prorank

    (@prorank)

    OK, managed to figure out what it was DOH!

    Had Yoast set up wrong, it had %%page%% which is a placeholder the plugin can’t handle. Just changed it to %%title%% and works fine. Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page Titles Not Appearing’ is closed to new replies.