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.

Sidebar Banner External Link to banner

Discussion in 'User Experience' started by milind, Jan 5, 2012.

  1. milind

    milind Well-Known Member

    Joined:
    Jan 15, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Nasik (Maharashtra), India
    cPanel Access Level:
    Root Administrator
    Hello all,

    I have created one theme for cPanel and uploaded on the server which include a banner (with hyperlink to website) above notice menubox but the problem is when I click on the image it open URL "http://xxxxxxxx.com:2082/cpsess8349859924/frontend/x3/%E2%80%9Dhttp://www.xxxxxxxxxx.com/cpanelbanner.html%22 instead of opening http://www.xxxxxxxxxx.com/cpanelbanner.html

    Following is the code in index.html
    Code:
    <div id="notices">
    	<h3><cpanel langprint="Special Offers"></h3>
    	<div id="noticeboard">
    	    <a href=”http://www.xxxxxxxx.com/cpanelbanner.html" target=”_blank”><img src=http://www.xxxxxxx.com/images/cpanelbanner.gif /></a>
    	</div>
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Is this literally what you have?

    Code:
    <a href=”http://www.xxxxxxxx.com/cpanelbanner.html" target=”_blank”><img src=http://www.xxxxxxx.com/images/cpanelbanner.gif /></a>
    The reason that I ask is that I did not notice it myself until I tried your code on a test server, but you have a different double-quote character after your href= tag than at the end of the link. Look very carefully:

    Code:
    <a href=”
    html"
    The two characters are not the same. It needs to be the " (shift + apostrophe-key on a US keyboard).

    If I surround the link with " characters, not the ” you have at the beginning, the link works as intended.
     
  3. milind

    milind Well-Known Member

    Joined:
    Jan 15, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Nasik (Maharashtra), India
    cPanel Access Level:
    Root Administrator
    Thanks for the tip Jared. It really worked.

    Thanks again.
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You are most welcome! I am happy I was able to help.
     
Loading...
Similar Threads - Sidebar Banner External
  1. m4f1aboy
    Replies:
    3
    Views:
    225

Share This Page