Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • sobe Friend
    #162676

    How can I add a button on the top-right corner? (*in the same position as the CPANEL button)

    WPStrong Friend
    #386141

    Hi,

    Open templates/ja_rave/css/template.css, add following code to end of file :


    /* for floating top-right button */

    #btn_float_wrap{
    font-size: 12px;
    position: fixed;
    right: 80px;
    top:0px;
    z-index: 9000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
    }
    #btn_float_wrap a{
    background: none repeat scroll 0 0 #333333;
    color: #CCCCCC;
    display: block;
    font-size: 10px;
    line-height: 24px
    padding: 0 10px;
    right: 0;
    text-transform: uppercase;
    top: 0;
    padding: 4px;
    }

    #btn_float_wrap a:hover,
    #btn_float_wrap a:active,
    #btn_float_wrap a:focus {
    text-decoration: none;
    }

    #btn_float_wrap a:hover{
    color: #fff;
    background: #069;
    }

    Create new HTML module and add following HTML code :
    <div id=”btn_float_wrap”><a href=”#”><span>Sample button</span></a></div>

    set parameters for the module as the attachment below


    1. dev.joomlart.com-2011-04-13-17h-19m-54s
    sobe Friend
    #386302

    Hi tronglp,
    Thanks for helping. I tried what you suggested but it didn’t work. The button never shows up, and the code writen in the custom module ends up appearing at the bottom of the page.

    Is there a specific location to add the additional code in the “template.css”? Is there something else I might be doing wrong?

    Thanks again

    WPStrong Friend
    #386306

    Oh I’m sorry, you have to switch your editor to HTML mode by click on “toogle editor”. Let’s give a try.

    sobe Friend
    #386491

    Thanks tronglp, that worked great!

    Could you tell me how to add a thin black border around the button?

    WPStrong Friend
    #386507

    After

    #btn_float_wrap a{
    add following code :
    <blockquote>border: 1px solid #FFF;</blockquote>
    #FFF is your border color. I picked white.

    sobe Friend
    #386663

    Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  sobe 13 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum