WordPress.org

Ready to get started?Download WordPress

Forums

Help formatting "Attachment" pages (5 posts)

  1. rileybetka
    Member
    Posted 1 year ago #

    There are a few minor changes I would like to make to my attachment pages using CSS (such as image alignment etc) - I can't seem to figure out how to do this. I read on a website that I should be able to edit my single.php or image.php but when I open these files I don't really understand how to change them. I have a pretty decent understanding of CSS but I'm having trouble figuring out the php stuff. Can I just go and add CSS to these PHP files? When I look at them it's hard to imagine where I would even enter the css - can I just do it at the bottom or what?
    I am also trying to replace the normal wordpress comments on my attachment pages with a FB comments app (using Facebook comments by Fat Panda) can anyone help me with that? Thanks!

  2. rileybetka
    Member
    Posted 1 year ago #

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    CSS does not generally go in PHP files - it should almost always be done in the external child theme stylesheet. And it would only be inline CSS, never in the same format as external styles.

    You should only change .php files in a child theme - make a copy of the original in your child theme and change it there. Do not ever edit parent theme files directly.

    Are you using a plugin for the FB comments or what?

  4. rileybetka
    Member
    Posted 1 year ago #

    yeah it's called facebook comments by fat panda - it looks like it is working when you click on "leave a reply" but when you just click the picture and you are taken to the attachment page it shows the old wordpress comment dialogue - not sure how to make it show the new one

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Asking on the plugin page will likely be the best place for help with this:

    http://wordpress.org/support/plugin/fatpanda-facebook-comments

Topic Closed

This topic has been closed to new replies.

About this Topic