The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM Web Template Editor not rendering images

Discussion in 'General Discussion' started by G-Host, Apr 30, 2014.

  1. G-Host

    G-Host Member

    Joined:
    Apr 22, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi there!

    This is making me crazy and I know it's got to be something really simple:

    If I am changing the Default Website Page using the template editor and want to add images, I understand the images are to be uploaded to the img-sys folder. What is the html code to link this, I am at a loss as they won't show up. Also I am using a css file, where would that go?

    I've tested so many variations and also tried adding manually to the skeleton directory as mentioned in this forum (btw, there was no index file there although I did create one) yet no luck with that either.

    Thank you in advance for your cooperation!!

    M


    Version: WHM 11.42.1 (build 12)
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    It's just html.

    <img src="/path/to/image" />
     
  3. G-Host

    G-Host Member

    Joined:
    Apr 22, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    <img src="/img-sys/g360376x376.png" border="0" />

    And I get nothing?.... Any other ideas? I thought maybe my path was incorrect.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I used the code you referenced and it worked successfully on a test server. Check to make sure the image uses 0644 permissions and is owned by the "root" user. Also, ensure the images are uploaded to the "/usr/local/cpanel/img-sys/" directory, and that you are editing the root template and not logged in as the reseller (unless you are editing it for reseller-owned accounts).

    Thank you.
     
  5. G-Host

    G-Host Member

    Joined:
    Apr 22, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I knew it had to be something silly. I had the URL correct, but I went ahead and changed those permissions and now we're good. Also for anyone else, I added the css directly to the page.

    Thanks much!!
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page