New Landing How can we help? Themeforest Theme Support Flexform How can we set the hover color for some links in this page

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Flexform
  • #240645
    Bitedge
    Member
    Post count: 345

    Hi guys,

    Generally links on my site are blue but on this one page http://www.bitedge.co/bitcoin-sportsbook-reviews/ (post=5) I wanted to make the headings (which are H1) links but keep them #222222 so I used this HTML

    <h1 style="text-align: center;"><a title="Go to Cloudbet" href="http://www.bitedge.co/goto/cloudbet" target="_blank" rel="nofollow"><span style="color: #222222;">Cloudbet</span></a></h1>

    But I want them change color to #4b9ef2 when they are hovered over, How can we do that?

    Thanks

    #240662
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this code:-
    <h1 class=”myHeadingStyle” ><span>Cloudbet</span></h1>

    And insert this custom css code:-

    .myHeadingStyle{
    text-align: center;
    }
    .myHeadingStyle span{
    text-align: center;
    color: #222222;
    }
    
    .myHeadingStyle span:hover{
    text-align: center;
    color: #4b9ef2;
    }

    Thanks
    Mohammad

    #240709
    Bitedge
    Member
    Post count: 345

    Can you please paste the HTML in code brackets so I can see what is in the link, thanks

    #240720
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Link is same as your code.
    Thanks
    Mohammad

    #240747
    Bitedge
    Member
    Post count: 345

    Can you please paste the HTML in code brackets so I can copy and paste exactly what you are suggesting I do because as best I can figure it out it’s not working.

    #240751
    David Martin – Support
    Moderator
    Post count: 20834

    <h1 style="text-align: center;"><a title="Go to Cloudbet" href="http://www.bitedge.co/goto/cloudbet" target="_blank" rel="nofollow"><span>Cloudbet</span></a></h1>

    Thanks.

    #241002
    Bitedge
    Member
    Post count: 345

    That did not work, it did not reference the style we just set up. This works

    <h1 class="myHeadingStyle" ><a title="Go to Cloudbet" href="http://www.bitedge.co/goto/cloudbet" target="_blank" rel="nofollow"><span>Cloudbet</span></a></h1>

    #241004
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that your issue resolved.
    Thanks
    Mohammad

    #241007
    Bitedge
    Member
    Post count: 345

    Oh but there is one problem, switchng betweein visual and text editor removes the

    <span></span>

    tags and breaks the style, any way to fix that?

    #241008
    Bitedge
    Member
    Post count: 345

    Also I would like to set the hover colorto be the same color as the normal links on my site. What is the color code for the blue of the normal text links around my site?

    #241044
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    a:hover{
    color: #4b9ef2;
    }

    Thanks
    Mohammad

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

You must be logged in to reply to this topic.