• I am new to the world of Web Development. I am developing a theme from scratch using underscores _s and following a course by lynda.com at https://www.lynda.com/underscores-tutorials/WordPress-Building-Themes-from-Scratch-Using-Underscores/163092-2.html

    I am successful upto chapter 7. Lesson 1 chapter 8, I am at dead-stop.
    As per my understanding the posts must be displayed by single.php which uses the content-single.php. But in reality index.php (the last option in the fallback) is in action. I have verified it.

    The lesson only trying to modify couple of code blocks merely related to how the <div> tags be used. I am unable to understand why index.php is in action instead of single.php.

    I am working on my local machine.

    Please help?

Viewing 1 replies (of 1 total)
  • Thread Starter Ashfaq Ahmed Nizamani

    (@ashfaq-ahmed-nizamani)

    I have resolved it. Although it is bit odd as I said I am new.

    How I solved it?

    Well when I followed the lecture in the above given link (in the question) I found that the url in the video was (https://localhost) throughout first seven chapters. But in the lesson 1 of chapter 8 I have noticed that the url is now (https://localhost/template-sticky) and that is really odd for me. Because when ever I had been visiting my website on my local machine I had been getting the home page (which is not a page defined in the page) rather a custom page with its menu name being defined in the menu and it is always selected by default or when I hit the title.

    I am still bit perplexed for what I have just found. So what I noticed in the url and applied the issue was resolved. Now the changes being applied can be seen and it means that the single.php>content-single.php duo are in action and not the default index.php

    What I have understood is this: When one select a post from the default custom page (a landing page) then we can see the actual effects of changes that have been applied to the content-singple.php

    I WILL APPRECIATE ANY COMMENTS.

    Thank you all

Viewing 1 replies (of 1 total)
  • The topic ‘Single.php is not in action rather index.php’ is closed to new replies.