• Resolved Jayson44

    (@jayson44)


    is there an easy way to edit templates in dreamweaver? because of the php, the wysiwyg doesn’t work because of the css styles. is there a work-around for this?

    J.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Jeremy Clark

    (@jeremyclark13)

    Don’t, DW can’t understand the wordpress template format and will make a mess of it.

    Thread Starter Jayson44

    (@jayson44)

    so that’s it? no work arounds or plugins? I found ThemeDreamer and am trying that out, but is there anything else out there that works better?

    or maybe I should ask a different question…does wordpress NEED to keep everything separate? does it have to call in the headers and footers and sidebars w/php instead of just having them all on the index file? I’m not a programmer, so I don’t understand everything about why php does the things it does, but if you just put the header and footer and all that onto the index file and do it that way, will it mess everything up? is it strictly because of the WP editor on the back-end? if I didn’t care about using the wp editor, would it work to put it all together?

    J.

    gregorypotter

    (@gregorypotter)

    I’ve been working with WP for a couple years now, and ThemeDreamer is your best choice for theme development when using Dreamweaver.

    As for options, here’s a trick I use when developing themes in WP.
    Suggestion:
    1.) goto your blog in a browser, and view the source
    2.) select all the source code and copy it
    3.) create a new .html file in the home directory of your blog theme
    {note: I usually name the file “originalfilenamehere”SOURCE.html or something like that so it’s easy to remember which php file the source came from. }
    4.) open this new .html file in dreamweaver, and locate the link to the stylesheet in the source code.
    {it’s in the header and should look something like this <link href=”https://www.yoursite.com/blog/wp-content/themes/yourtheme/style.css&#8221; media=”screen” type=”text/css” rel=”stylesheet”/> }
    5.) now edit the link so that it points to the style sheet in the same directory as the .html created in step 3.
    { so <link href=”https://www.yoursite.com/blog/wp-content/themes/yourtheme/style.css&#8221; media=”screen” type=”text/css” rel=”stylesheet”/> becomes <link href=”style.css” media=”screen” type=”text/css” rel=”stylesheet”/>}
    6.)now save the .html file and switch to the wysiwyg view in DW. You should see your theme displayed properly.

    I came up with this method so that I could work on my theme stylesheets off-line, and without running a server locally. As long as your online, all the other content in the sourcehtml file should display correctly.

    To get used to how the theme is contructed and displayed by the server. Open the index.php file of your theme and place a comment before and after the <code><?php get_example(); ?></code> calls, so that when your viewing the code in the source, you get an idea of what came from where.

    Hope this helps you out.

    Thread Starter Jayson44

    (@jayson44)

    wow…that’s what I was looking for. thanks so much gregory!

    J.

    gregorypotter

    (@gregorypotter)

    glad it helped.

    Steveorevo

    (@steveorevo)

    Just a quick FYI that ThemeDreamer 0.4.1 is out (finally an update) and now supports Dreamweaver CS4 along with a more forgiving rendering parser.

    Steveorevo…You are a God-send. I have been vexed for days by this very problem and was thinking that I had to use ColdFusion 8 Developer to integrate WordPress software but then had to find a new hosting server with CF 8. I hope you get lots of goodies in your stocking by the fireplace this season. ?? Now…do you know anything about integrating phpBB3.0.3 into Dreamweaver CS4 prior to transfer or am I hoping for too much help?

    I want to use dreamweaver as well. is ThemeDreamer for helping you design your site in Dreamweaver and then pluggin into WP for CMS?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Editing Templates in Dreamweaver…’ is closed to new replies.