Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Adding simple corner banner

    Hi,

    I would like to add something like this to my website
    http://www.rhyous.com/2012/01/23/how...your-web-page/

    Just a simple corner banner onto the background of my site.

    I am using the red passion template. Where do I add the html code? Which file should this go into? Or do I need to do this another way?

    Any help would be great

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding simple corner banner

    In your templates tpl_header.php file
    Add image
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Adding simple corner banner

    Thanks for your reply but this didn't work. I placed the following code into tpl_header.php

    <a id="right-corner" href="" target="_blank">
    <img src="/images/corner.jpg" alt="">
    </a>

    With this style within the css

    #right-corner {
    position: fixed; /* Make sure you can align it exactly */
    cursor: pointer; /* Change the cursor on mouse over */
    top: 0px; /* Change to 100px to put it under a 100px banner */
    right: 0px; /* Change to 100px to put it left of a 100px right-side bar */
    z-index: 99999; /* make sure it is the top element always */
    }

    I added in the corner.jpg within my images folder.

    What am I doing wrong? Why is it not showing?

    Thanks

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding simple corner banner

    Try

    <div>id="right-corner"</div>
    <a>href="" target="_blank"><img src="images/corner.jpg" alt=""</a>
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Adding simple corner banner

    Try putting your code into tpl_main_page.php

    Works for me, but then my page doesn't extend full width.

  6. #6
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Adding simple corner banner

    Thanks to you both for your help. I was putting the code into the wrong tpl_header.php file.

    I put this code into the tpl_header.php file that was within my templates common folder:
    <a id="right-corner" href="" target="_blank">
    <img src="/images/corner.jpg" alt="">
    </a>

    and it works great :-)

    Many thanks for taking the time to help me..

 

 

Similar Threads

  1. adding corner ssl trust logo screws up width of site
    By willie bee in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 29 Apr 2011, 08:45 AM
  2. Adding Pic on Main Page Top Right Corner
    By PSPUMD in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Jan 2010, 08:47 PM
  3. Newbie: Simple banner hyperlink
    By gifro10 in forum Basic Configuration
    Replies: 1
    Last Post: 1 May 2008, 09:53 PM

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