Word press & dreamweaver

Post on 15-May-2015

1.336 views 0 download

Tags:

description

Presentation on using WordPress with Dreamweaver CS5.x on a local system

Transcript of Word press & dreamweaver

Designing on a Local System

Test and experiment with new features or plugins without impacting online site

Work offline with no internet connection Present prototypes and live demos to clients

without needing a connection Design using Dreamweaver CS5.x

Apache, MySQL and PHP installed ◦ Mac: MAMP – http://www.mamp.info/en/index.html◦ Windows: WAMP – http://www.wampserver.com/en

WordPress Themes & plugins stored locally to “upload”

(when working offline) Browser of choice

Download setup file Install as any other Mac application Will offer Pro version as option – free version

is all that is needed

Download setup file Install WAMP

◦ Click on Wampserver 2 setup file◦ Follow prompts

Put online Set MySQL password (see Appendix)

Lynda.com has step-by-step tutorials for installing MAMP/WAMP and WordPress locally.

Create database Create folder for WordPress files

◦ Windows: C:\wamp\www\sitename◦ Mac: Applications\MAMP\htdocs\sitename

Copy WordPress files to folder Install as usual:

http://localhost/sitename/wp-admin

After installing WordPress, install any themes you want to use.

This Genesis theme (Church) allows for different color themes.

Use Live View to see the page design in Dreamweaver.

Clicking on areas of the page, changes the display of div and class settings for that section. By clicking on a “div”, the properties defined in the css are shown.

I want to eliminate the background image in the body and change it’s color. I can “comment out” the image, and add a new property.

To add a background color that is consistent with the rest of the page, I can hover the mouse over and area (eyedropper not visible in screenshot) and Dreamweaver will fill in the hex code.

I’ve settled on the background color for the wrapper.

To view my changes live, I simply go to the browser.

I’m going to change the header in Dreamweaver. In this case I will edit by clicking the edit button (pencil).

Now I need to adjust the padding on the title area so the text and logo don’t overlap.

Letting Dreamweaver “Discover” dynamically related files, let’s you find linked php files such as footer.php easily.

WordPress sites have LOT of dynamically related files. Filtering allows you to display only those of interest.

There are three footer files. The last is the Genesis framework and should not be edited. This one defines the layout of the footer and calls the shortcodes.

This footer.php defines the shortcodes themselves.

You now have the option to edit and customize the footer.*

*This is being shown to illustrate the power of Dreamweaver CS5. However, for Genesis themes, using the Genisis Simple Edits plug-in is a simpler way.

Installing MAMP / WAMPScreenshots from Lynda.com

Setting MySQL password

MySQL version will vary depending on when you downloaded.

You will need a text editor to edit config.inc to include the password.

After setting the MySQL password, restart all services.