Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS wordpress issue

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46456
    rwchampin
    Participant

    this is wierd….im working locally and im creating pages locally as well…..and when i try to load the page ive created locally it just loads the homepage automatically…and wont show the real page…….i save the page locally as page-about.php…edited it…and then went into the dashboard and created a page called”about” and it doesnt load lol…it just loads the homepage..ive dont this with sucess with a few other pages but it just stopped working for some reason…help?

    #143238
    Alen
    Participant

    What is the slug for About page? If it’s `about` then I see no reason why `page-about.php` wouldn’t work. Can you provide some code for your about template?

    #143180
    Alen
    Participant

    Wordpress would look for `page-about.php` before `page.php` so the issue is with your page-about file.

    http://codex.wordpress.org/Template_Hierarchy#Page_display

    #143418
    Alen
    Participant

    @janet4now, that is only if you are specifying custom template. However, `page-{slug}.php` should work without selecting custom template.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.