Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joy090394

    (@joy090394)

    Thanks so much graphicscove & shariqkhan2012 — the codes worked perfectly fine on my site 🙂

    Thread Starter joy090394

    (@joy090394)

    Arh I see. I think my content-page.php links to the front page and the individual post when I click on it. I reckon that Page.php should be my homepage template since it displays all pages like this:

    <?php
    /**
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages and that other
     * 'pages' on your WordPress site will use a different template.
     *
     * @package Suits
     * @since Suits 1.0
     */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area">
    		<div id="content" class="site-content" role="main">
    
    			<?php /* The loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', 'page' ); ?>
    				<?php comments_template(); ?>
    			<?php endwhile; ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    How do I rename a php file? My website is thesolidfood.org/youth. Maybe you can help me take a look and suggest edits?

    Also, so sorry cos this is the first time I’m working with php files. I’m still trying to get the hang of it haha 😀

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