• Hi Guys, so a quick one for you, if i edit a WP theme in Dreamweaver with images and text, and then i upload it onto WP….where would it store the images i did in DWeaver ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi Tesla619!

    That would depend on how you are loading your images. The most common way would be using the theme’s folder and using get_template_directory_uri() to get the path of the folder. ( supposing it is not a child theme )

    So, your images would look something like:

    <img src="<?php echo trailingslashit( get_template_directory_uri() ); ?>images/header_bg.svg"/>

    And your folders would be:

    wp-content/
    - themes/
    -- mytheme/
    --- style.css
    --- img/
    ---- header_bg.svg
    -- twentytwelve/

    I hope that helps!

    Do keep in mind that WordPress does not always play nice with relative paths, which is why I said, get_template_directory_uri().

    The images would be stored wherever you mentioned in your ‘<img src=”<?php echo trailingslashit( get_template_directory_uri() ); ?> images/header_bg.svg”/>’ path of your theme folder. If you change any theme file, let’s say header.php you need replace older version of the file with your new header.php file version. I hope that makes sense

    Thread Starter Tesla619

    (@tesla619)

    quick question, i’m building a site with Themify, can i build and edit that in DW ?

    Themify has modules for text and images you drag and drop so not sure how that will work with DW ?

    Yes, without any problem

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editing WP themes on Dreamweaver then uploading it’ is closed to new replies.