Skip navigation
*Topphoto*
Currently Being Moderated

Preview of wordpress theme

Jul 31, 2012 4:44 AM

Hello

 

When I want to see a preview of my theme is nothing shown (Preview in Safari). When I change the url from this:

 

http://localhost/wp-content/themes/mytheme/index.php

 

to this:

 

http://localhost

 

it works.

 

How do I set up dreamweaver so I can see the preview of my wordpress themes (live view and preview in Safari)?

 

How do you see a preview in a browser and Live View in Dreamweaver for your own designed wordpress theme?

 
Replies
  • Currently Being Moderated
    Jul 31, 2012 5:53 AM   in reply to *Topphoto*

    Because of how dynamic pages work, you can only preview the template as if you were visiting the site (ie: the index file).  The index page calls the template and the content separately and it also includes a bunch of files necessary to process the document.  You are doing nothing wrong and that second address is the one you want to use.  Personally I wouldn't recommend that setup if you plan on developing mulitiple sites.  You should consider making folders within your "WWW" folder so you end up with URLs like http://localhost/site1 or http://localhost/site2 for your development purposes.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 9:41 AM   in reply to *Topphoto*

    But you answered your question in the first post.  The /wp-content/... folder path will not work. When you setup the path in DW, the path should be just the localhost for you now and you should only preview the index.php file in the root of your site, not the individual PHP files you might be editing.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points