Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Apr 2010
    Posts
    207
    Thanks
    30
    Thanked 0 Times in 0 Posts

    Can not hide an image generated by javascript....

    I am using the Gostats plugin for Wordpress and it is generating an icon int he footer of my webpage...I want to hide that image so it is not seen. I also want the part that says "View Stats" at the bottom hidden as well.

    I looked at the code with firebug, but can not seem to hide this...a simple css way would be best. Can anyone help me out here?
    Website: www.billboardfamily.com
    Twitter: www.twitter.com/billboardfamily
    Facebook Fan Page: www.facebook.com/BillboardFamily
    Facebook (Carl): www.facebook.com/CarlMartin.BillboardFamily (admin note: sig should be <=4 lines)

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,955
    Thanks
    9
    Thanked 726 Times in 720 Posts
    Assuming you can't wrap another div around the generated code, something like:

    Code:
    #footer .wrapper > a {display:none}
    might do the trick.

  • Users who have thanked SB65 for this post:

    CarlMartin10 (08-15-2010)

  • #3
    Regular Coder
    Join Date
    Apr 2010
    Posts
    207
    Thanks
    30
    Thanked 0 Times in 0 Posts
    That absolutely worked. Thanks so muuch!
    Website: www.billboardfamily.com
    Twitter: www.twitter.com/billboardfamily
    Facebook Fan Page: www.facebook.com/BillboardFamily
    Facebook (Carl): www.facebook.com/CarlMartin.BillboardFamily (admin note: sig should be <=4 lines)

  • #4
    met
    met is offline
    Regular Coder
    Join Date
    Oct 2009
    Location
    United Kingdom
    Posts
    728
    Thanks
    4
    Thanked 119 Times in 119 Posts
    just bear in mind that this means ~any~ link you have in the footer will be hidden

    you could just remove the code directly from the PHP file (GoStats.php);

    PHP Code:
    /* looks like its line 167 - 170 or so */

    echo ".gostats.com/bin/count?a=";
    echo 
    urlencode($gostats_siteid);
    echo 
    "&amp;t=1&amp;i=1&amp;z=\"
    style=\"border-width:0px;width:88px;height:31px\" alt=\"web counter\" 
    width=\"88\" height=\"31\" /></a><br />
    <a style=\"font-size: 9px\" href=\"http://gostats.com\" 
    title=\"GoStats web counter\">web stats counter</a></div></noscript>
    <!-- GoStats.com -->"
    ;

        }
    }
    ?> 

  • #5
    Regular Coder
    Join Date
    Apr 2010
    Posts
    207
    Thanks
    30
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by met View Post
    just bear in mind that this means ~any~ link you have in the footer will be hidden

    you could just remove the code directly from the PHP file (GoStats.php);

    PHP Code:
    /* looks like its line 167 - 170 or so */

    echo ".gostats.com/bin/count?a=";
    echo 
    urlencode($gostats_siteid);
    echo 
    "&amp;t=1&amp;i=1&amp;z=\"
    style=\"border-width:0px;width:88px;height:31px\" alt=\"web counter\" 
    width=\"88\" height=\"31\" /></a><br />
    <a style=\"font-size: 9px\" href=\"http://gostats.com\" 
    title=\"GoStats web counter\">web stats counter</a></div></noscript>
    <!-- GoStats.com -->"
    ;

        }
    }
    ?> 
    Thanks. I used the css code in the previous post, and it hid the icon, and actually did not remove any other links in the footer. I just went back to double check and they all seem to work fine.

    http:/www.billboardfamily.com
    Website: www.billboardfamily.com
    Twitter: www.twitter.com/billboardfamily
    Facebook Fan Page: www.facebook.com/BillboardFamily
    Facebook (Carl): www.facebook.com/CarlMartin.BillboardFamily (admin note: sig should be <=4 lines)

  • #6
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,955
    Thanks
    9
    Thanked 726 Times in 720 Posts
    just bear in mind that this means ~any~ link you have in the footer will be hidden
    Only any link that's a direct child of #footer .wrapper.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •