• Resolved austintude

    (@austintude)


    Quick question for you… what do I need to change to get the archives, categories, tags pages to have the same UI as my posts? I’ve changed the templates and added them to the child theme folder but those only affect the posts… I can’t quite workout what needs doing to get my pages to look like my posts. I built the theme, so I can modify the archive.php but it references get_header('blogamp'); ?> and I’ve change the header-blogamp.php page to essentially house all of the single.php and header-bar.php from the templates folder I mentioned previously, but it doesn’t seem to do anything. Thoughts? Anything would be much appreciated. Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter austintude

    (@austintude)

    So this is finished. I’ll close this request. For anyone interested… I had to create:
    archive.php
    content-amp.php
    footer-amp.php
    header-blog.php

    All of these files were saved in the child-theme folder (but NOT the amp-templates folder in the child-theme folder!)

    The archive.php calls for the header-amp.php file which is where I added all of the amp-scripts, the <html amp>, the <script amp-custom> css </script>, AND the Nav menu items and the hero image, page-title, etc

    The archive.php file also calls for the content.php file in the theme folder, so I modified this to call for the content-amp.php file and located this copy in the child-theme. I had to make sure that it wasn’t utilizing any non-amp elements (like <img instead of <amp-img etc) and make sure that the css in the header-blog.php page was consistent within this file)

    Also, the footer I use in the non-amp versions has several javascript calls which obviously don’t work, so I rebuilt the footer-amp.php file and located it in the child-theme folder as well.

    Bing bango boom.

    Hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Getting archives.php etc AMPed’ is closed to new replies.