WordPress.org

Ready to get started?Download WordPress

Forums

Can't add a logo - Comet Theme (7 posts)

  1. tekgirl
    Member
    Posted 4 years ago #

    I'm using the theme comet (can be found at: http://wordpress.org/extend/themes/comet) and there's an option to enter the logo URL but when I do that I get an error message.

    I wonder if there's a way o inserting this logo manually. The logo option in the functions.php is:

    }

    if($fp_option == "logo"){

    if(strlen($fp_logo) > 0) { // logo assigned in options

    list($width, $height, $type, $attr) = getimagesize($fp_logo); // get image attributes

    if($type == 1 || $type == 2 || $type == 3) { // image ok
    echo "<img src='".$fp_logo."' alt='".get_bloginfo('name')."' border='0' ".$attr." id='logo' />";
    } else { // image not gif, jpg or png
    echo "<h1>".get_bloginfo('name')."</h1>";
    if(strlen(get_bloginfo('description')) > 0) {
    echo "<div class='descOut'><div class='descIn'><h4>".get_bloginfo('description')."</h4></div></div>";
    }

  2. slpatterson
    Member
    Posted 4 years ago #

    Ignore the theme 'editor' option and insert your own header graphic from the WordPress admin screen under the "Appearance>Comet Options>Logo" section.

  3. nypotter
    Member
    Posted 4 years ago #

    How do you do that!? I am used to a browse button or an upload button. I do not know how to manually enter a url to a logo or header image that is in my desktop, simple as it may sound - I just font know how to type in the path for that.

    Do you or does anyone? Please advise. Thank you.

  4. nypotter
    Member
    Posted 4 years ago #

    BTW I am in the "appearance>comet>logo" section and cannot figure it out.

    Also I work on a MAC and don't know if that could be the problem?

    Thanks.

  5. ronreason
    Member
    Posted 4 years ago #

    I am having the exact same problem. I have uploaded an image file for my new logo, placed its URL in "Appearance>Comet Options>Logo" and then I get several lines of error on my home page (in addition to the text for the original default header which I don't want to see).

  6. ronreason
    Member
    Posted 4 years ago #

    These are the lines of error code I get at the top of my home page:
    backticks
    Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /data/7/0/71/45/397371/user/404443/htdocs/designwithreason/wp-content/themes/comet/functions.php on line 36

    Warning: getimagesize(http://www.ronreason.com/NewBlogLogo.png) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /data/7/0/71/45/397371/user/404443/htdocs/designwithreason/wp-content/themes/comet/functions.php on line 36
    backticks

  7. Sayontan Sinha
    Member
    Posted 4 years ago #

    Ronreason,
    This may have something to do with your hosting provider, which disables URL file-access. Some hosts are set up this way. To do this your theme's author needs to use cURL to fetch the image file.

    Sayontan.

Topic Closed

This topic has been closed to new replies.

About this Topic