Forums

[resolved] No page.php in Graphene Theme (3 posts)

  1. adrstuart
    Member
    Posted 1 year ago #

    Im trying to allow facebook comments on my blog posts. using the graphene theme

    I have the Facebook comments plugin and it has told me to do the following

    3.Insert the following code somewhere between <?php comments_template(); ?> and <?php endwhile; else: ?>: <?php if (function_exists('facebook_comments')) facebook_comments(); ?>

    To do this i need to post this in page.php. Only problem being when i go into the Appearance > Editor, there is no page.php

    the website is http://www.tombridger.co.uk

  2. Josh
    Member
    Posted 1 year ago #

    My first suggestion is to reconsider using a plugin that requires you to modify templates.
    That said, you could create a child theme, copy over the index.php from Graphene, rename it page.php, then add your comments plugin code. You'll need to use your file manager from cpanel and/or use FTP. The built in theme file editor in WordPress is best used for reference, not editing.
    Further reading and explanation here.

  3. alchymyth
    The Sweeper
    Posted 1 year ago #

    Im trying to allow facebook comments on my blog posts.

    To do this i need to post this in page.php.

    this is kind of a contradiction, as page.php would certainly not show posts.

    are you sure that you don't have to edit single.php (for single posts) of index.php (for posts on the front page)?

Topic Closed

This topic has been closed to new replies.

About this Topic