New theme isn’t finding blog posts

  • Unknown's avatar

    Hi! I just switched from Baskerville 2 to the Yuga theme. I mostly love the look, but I can’t link to my blog page anymore. When I look through the templates, I can see that my blog page technically shows up in a template called “Index”. But I can’t find how to link to my blog “index”. The old link, leilaammartin.com/blog, used to land on my “BLOG” page…but now it lands on the default/sample Yuga page instead. How can I link to my blog page (now the “index” page)? The URL https://leilaammartin.com/index just returns a 404/page not found.

    If it helps:

    • I have my homepage set to show a static page, and that works: http://www.leilammartin.com
    • I have my Default Posts Page set to “BLOG”–but it doesn’t show my blog posts, it shows the Yuga sample homepage. There’s no “Index” for me to select in the dropdown:

    Baskerville 2 didn’t have a static homepage template, so I had to create a page called “Welcome” and set that as my homepage. But Yuga has its own “Home” template, which I didn’t edit to be my Welcome page since I already had the “Welcome” page set up. Is the weirdness maybe happening because of that?

    Please help! I really want to keep the updated look, but I need to be able to link to my blog “index” somehow so users can browse all posts and not just the handful of most recent ones!

    Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Hi! We can check this over with you, I do understand where the confusion is coming from. I had a look at your theme, and it turns out that Yuga has a “Home” template, which is the one which takes priority over Index. So, long story short, what you’re seeing when you go to https://leilaammartin.com/blog/ now is the template titled “Home”, and not Index.

    I had a look over the site and I see you have a second Blog page set up, where there is only a Query Loop block in the page content:
    https://leilaammartin.com/blog-posts-short-fiction/

    Did you want to have https://leilaammartin.com/blog/ look like that page linked above? If so, then I would suggest:

    1. Head to Appearance > Editor (beta) (which is the Site Editor) and ensure that you’re editing the “Home” template.
    2. Remove anything from the “Home” that you don’t want, but do leave the header and footer in place for your own convenience. You can put in your preferred way of displaying your blog posts; for example a Query Loop like the one you set up on the other page.
    3. In your menu, which is a Navigation block, you could remove the existing “Blog” link (which goes to https://leilaammartin.com/blog-posts-short-fiction/) and replace it with the “BLOG” page which goes to https://leilaammartin.com/blog/.

    General theme differences

    The main difference between Baskerville 2 and Yuga is that Baskerville 2 is a classic theme, while Yuga is compatible with the Site Editor, which means that you can change aspects of the site layout. With Yuga you’re not constrained to things like the ‘content width’, font sizes, position of the site title, logo, or menu, and other aspects of the overall site appearance.

    Templates, summarised

    With both themes, they have templates (as in: the layout and overall appearance, not the content) which apply to the different parts of your site – the difference is that because Yuga is a Site Editor theme, you actually have access to edit those templates. In comparison, when you created a static front page (titled “Welcome”), that automatically applied Baskerville 2’s own general ‘page’ template to that page, and you didn’t really have any way to make changes to the template itself, though you could of course change the content of the page.

    Which template goes where

    When you’re working in the Site Editor which is at Appearance > Editor (beta), you are typically working on making changes to a template. Different templates apply to different parts of the site.

    For example, in a case where a theme does not have any other dedicated “Posts page” template, then the “Index” template will apply (by default) to wherever your blog posts are automatically designated to show up. So when you don’t have a static front page, what you see when you visit your site is whatever is set up in the Index template (and typically, that’s your blog posts). If you set a static front page, your front page contents will have the ‘Page’ (or possibly ‘Front Page’) template applied to it; and whichever page is your Posts page will have the Index template applied to it.

    Side note: that’s also true for Baskerville 2!

    That said, as we saw above, Yuga has a dedicated template for the Posts page, and that template is titled “Home”. I have asked the team if there’s anything we can do to clarify that it’s for the Posts page!

    I hope that helps, if you do have any other questions let us know.

  • Unknown's avatar

    @staff-95percentghost Hot DANG that’s a thorough answer. Thank you!! I played around with some settings and got the site to a point I’m pleased with. It’s definitely a challenge to move from a classic site to a new one, but I do like the capabilities with the newer templates and building blocks. :)

  • Hi there,

    I’ll also underscore that was a very thorough answer, glad it helped! I’ll add here that we have a few webinars that go into the Site Editor and working withblocks in more detail.

    You are welcome to catch any of the replays here on our YouTube channel: https://www.youtube.com/playlist?list=PL6nDc7ACvovJsTTz_s6RrNmdjpCB83Cvx

    You can also sign up for one of our upcoming webinars and get firsthand experience with the WordPress.com tools and benefit from the live Q&A here: https://wordpress.com/learn/webinars/

    You may be interested in our free site building courses here if you prefer self-paced instruction: https://wordpress.com/learn/courses/

    Hope that helps. Please let us know if you have any more questions.

  • The topic ‘New theme isn’t finding blog posts’ is closed to new replies.