Premium WordPress Themes, Templates & Plugins › Support › WordPress Theme Support › Cosmos › add snippet in home page › Reply To: add snippet in home page
Dear Jenny,
my homepage is this:
<?php
get_header();
$col= ‘col-md-12′;
if ( themeofwp_option(”.$shortname.’_blog_sidebar’)==’left’ || themeofwp_option(”.$shortname.’_blog_sidebar’)==’right’ ) {
$col = ‘col-md-9′;
}
?>
<!–/.theme-layout-start–>
<?php echo themeofwp_layout() ;?>
<!–/.container –>
<div class=”container-fluid”>
<!–/.row –>
<div class=”row”>
<!– sidebar left –>
<?php if(themeofwp_option(”.$shortname.’_blog_sidebar’)==’left’){ ?>
<?php get_sidebar(); ?>
<?php } ?>
<!– sidebar left –>
<!– #content –>
<div id=”content” class=”site-content <?php echo $col; ?>” role=”main”>
<!– query posts –>
<?php if ( have_posts() ) { ?>
<?php while ( have_posts() ) { the_post(); ?>
<?php get_template_part( ‘inc/post-templates/content’, get_post_format() ); ?>
<?php } ?>
<!– query posts –>
<!– pagination –>
<?php echo themeofwp_pagination(); ?>
<!– pagination –>
<?php } else { ?>
<?php get_template_part( ‘inc/post-templates/content’, ‘none’ ); ?>
<?php } ?>
</div>
<!– #content –>
<!– sidebar right –>
<?php if(themeofwp_option(”.$shortname.’_blog_sidebar’)==’right’){ ?>
<?php get_sidebar(); ?>
<?php } ?>
<!– sidebar right –>
</div><!–/.row –>
</div><!–/.container –>
</div><!–/.theme-layout-end–>
<?php get_footer();
I want see html code and no php. I see the code into the browser tools but they are not editable…
How to do?
Sorry for my english