Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problems overriding default templates


  • lordsnake
    Participant

    @lordsnake

    I have created a child theme of bp-default under themes/bp-fusion/, and my CSS change sare overriding the original CSS just fine. But I am having problems doing the same with the php templates.
    e.g.
    I copied the single.php into my child theme folder, made some changes and they have no effect. If I view the source, they are not even there.
    I have used the edit themse page within wordpress itself as well, and there I can see my new files with the changes.
    I have cleared the browser cache,

    Have I missed something ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not sufficient information for a meaningful response, the single.php in a child theme should override the parent/original for the display of single WP posts.


    lordsnake
    Participant

    @lordsnake

    tell me what additional info you need and I will provide it.


    @mercime
    Participant

    @mercime

    @lordsnake it might be same glitch that happened to me once using FF even after clearing cache, I opened up Chrome, safari and IE where I saw my revisions. Looking into it further, I decided to uninstall WP Super Cache, and my FF showed the revisions as well. Installed WP Super Cache back and it has not happened again since.

    Or, it might be the new code you added is not rendering as you expected – but if you’re not seeing the surrounding divs that you might might have added in source like you say, then it could just be a browser thing.


    Roger Coathup
    Participant

    @rogercoathup

    @lordsnake – At the risk of sounding patronising: –

    1. are you sure it’s the single.php template that is being used to render your page? Give it a little tweak in the bp-default theme (you can change it back afterwards) and let us know if it’s being picked up.

    2. are you sure your new single.php (child theme) has been published to your server?

    3. what happens if you try to override your index.php, does that get picked up?

    Failing that: post your folder structure, header from your style.css, and your single.php file for us to check.

    Oh, and which version of WP and BP


    lordsnake
    Participant

    @lordsnake

    you were right Roger, I was looking at the wrong page. I thought single.php was the main blog page when in fact the it the post detail page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problems overriding default templates’ is closed to new replies.
Skip to toolbar