Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: add snippet in home page #8734
    filippocatania
    Participant

    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

    in reply to: add snippet in home page #8732
    filippocatania
    Participant

    Can you write me the complete path of home page to modify the html code? Thanks

Viewing 2 posts - 1 through 2 (of 2 total)