Last active
February 21, 2021 04:32
-
-
Save blueprintmrk/d29141e5e1b3fcbec89d5c4f2ea9f360 to your computer and use it in GitHub Desktop.
Christianus: Full Width Page Template (template_page_full-width.php)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Full Width | |
*/ | |
get_header(); | |
$enable_page_comments = $ot_options['enable_page_comments']; | |
$enable_page_comments = $enable_page_comments[0]; | |
$hide_title = get_post_meta($post->ID, 'hide_title', true); | |
$fullWidth=1; | |
?> | |
<?php include('includes/sliders/cycle.php');?> | |
<div class="clear"></div> | |
<!-- main --> | |
<div class="main"> | |
<div id="content" class="container"> | |
<div class="sixteen columns"> | |
<section class="cols"> | |
<?php /* The loop */ ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<header class="entry-header"> | |
<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?> | |
<div class="entry-thumbnail"> | |
<?php the_post_thumbnail(); ?> | |
</div> | |
<?php endif; ?> | |
<?php if(!$hide_title){ ?><h1 class="entry-title"><?php the_title(); ?></h1><?php } ?> | |
</header><!-- .entry-header --> | |
<div class="entry-content"> | |
<?php the_content(); ?> | |
<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> | |
</div><!-- .entry-content --> | |
<div class="clear"></div> | |
<footer class="entry-meta"> | |
<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> | |
</footer><!-- .entry-meta --> | |
</article><!-- #post --> | |
<?php endwhile; ?> | |
<?php if( $enable_page_comments ) { comments_template( '', true ); } ?> | |
</section> | |
<div class="clear"></div> | |
</div> | |
<div class="clear"></div> | |
</div> | |
</div> | |
<?php get_footer(); ?> |
Had "noindex,follow" !DOCTYPE html>
<meta name="robots" content="noindex,follow" /><!DOCTYPE html>
--
| <html lang="en-US" prefix="og: http://ogp.me/ns#">
| <head>
| <meta charset="UTF-8">
| <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0" />
| <title>Texas Pay As You Go Electricity - Cheap Rates - New Customer Bonus</title>
| <link rel="profile" href="https://gmpg.org/xfn/11">
| <link rel="pingback" href="https://.com/xmlrpc.php">
```
Now the code is working & the homepage can be indexed
<!DOCTYPE html>
| <html lang="en-US" prefix="og: http://ogp.me/ns#">
| <head>
| <meta charset="UTF-8">
| <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0" />
| <title>empty on purpose</title>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
removed noindex
`