Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2010
    Location
    NY - Hudson Valley
    Posts
    30
    Plugin Contributions
    0

    Default Custom page Image Path

    Hi, I am having trouble with the image path in my custom pages. I want to add an image to define_about_us.php. After I insert the image, it doesn't appear locally, only the alt tag does. Is there some global setting?

    Thanks!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom page Image Path

    How are you inserting the image? If an editor browse function isn't doing it right, try uploading the image straight to your /images/ folder, or your /includes/templates/your_template/images/ folder, and use the <img> code directly with the file location specified.

  3. #3
    Join Date
    Mar 2010
    Location
    NY - Hudson Valley
    Posts
    30
    Plugin Contributions
    0

    Default Re: Custom page Image Path

    hmm.
    It's not working for me locally. Here is my code within the includes/languages/english/html_includes/collegePrep/define_main_page.php: <img src="../../../../templates/collegePrep/images/maximize_scores.jpg" alt="home image" width="940" height="337" />

    What am I doing wrong?! Thanks.

  4. #4
    Join Date
    Mar 2010
    Location
    NY - Hudson Valley
    Posts
    30
    Plugin Contributions
    0

    Default Re: Custom page Image Path

    this seems to work: <img src="includes/templates/templatename/images/image.jpg" />

    Thanks.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom page Image Path

    Yep, that's the recommended method. Sorry I missed you before. The relative URL will work even if you move the site to a different folder or server, whereas an absolute URL (http://www... ) would only work from one location.

 

 

Similar Threads

  1. v153 Set path for existing small image and path for existing large image in product?
    By njlech in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 12 Dec 2014, 03:11 AM
  2. v151 Custom image bullet list on an EZ Page
    By magz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Dec 2013, 12:43 AM
  3. whats the path to custom meta_tags.php?
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Dec 2007, 09:53 PM
  4. How to call MED image info on main page? Not an IMG but the path. Help please !
    By Yuchant in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 24 Sep 2007, 10:30 PM
  5. Table with round corners... border image doesn't show on page. Relative path issue?
    By stenio123 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Jul 2007, 09:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg