WordPress.org

Ready to get started?Download WordPress

Forums

editing a page in the dashboard (5 posts)

  1. vasilescu_anton
    Member
    Posted 5 years ago #

    Hi all,

    I am pretty new at wordpress and I am trying to make a theme from scratch for my site. Until now I was able to add all the stuff I need for it but now that I think the template is done I want to be able to add different content for each page apart. If I continue adding code to my page.php, all my pages will show all that. I've tried to go in the dashboard and edit the pages from there but it shows only a blank text area where I can add my content. Once I add it in there it doesn't show it in my webpage.

    I know this is something simple but I wasn't able to figure it out... Any ideas are greatly appreciated!

    Antoncontent, dashboard, pages, templates

  2. jbiggs
    Member
    Posted 5 years ago #

    hmm, I think maybe you have made an error in page.php, please restore an orignal copy of that file and then see if you can edit pages.

    page.php is called for every page, so yes any content you put in this file will appear on each of your pages.

    Cheers, John.

  3. vasilescu_anton
    Member
    Posted 5 years ago #

    The only thing I need in my page.php is a <?php /* Template Name: Page */ ?> right? Even after adding this it still not displays anything on the page edit area of the dashboard...

    On the other hand, I have 23 separate pages that have the same layout where header, sidebars, footer are all the same but different content in main div. I thought I would be able to have the same page.php template added to all of them and have the content inserted through a php anchor or something similar and be able to edit just the content in the dashboard. What's the best way to go about building this?

    Thanks,
    Anton

  4. jbiggs
    Member
    Posted 5 years ago #

    No page.php must have much more stuff in it.

    Restore an original and work from there...you need to cut the HTML out of each main DIV and insert it into each page in the Dashboard.

    Cheers, John.

  5. vasilescu_anton
    Member
    Posted 5 years ago #

    Solved it finally. The issue was that i deleted the loop from that page. Once i put it back everything went flawless. Now I can edit all the html in the dashboard :)

    I knew it was beginners thing! Thanks for the help!
    Anton

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.