Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #14756

    Hi, just getting started but quite impressed with the theme. Great job!

    Is there a way in the dashboard to not use a logo image? I would like to use the WordPress Title & Slogan.

    Thank you!

    Brent

    #84779

    Hello,

    Open framework > php > function-set-avia-frontend.php and find this code

    if(!function_exists('avia_logo'))
    {
    /**
    * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    * otherwise display the logo file linked in the css file for the .bg-logo class
    * @return string the logo + url
    */
    function avia_logo($use_image = "")
    {
    $use_image = apply_filters('avia_logo_filter', $use_image);

    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    if($use_image) $logo = "<img src=".$use_image." alt='' title='$logo'/>";
    $logo = "<h1 class='logo bg-logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }

    return $logo;
    }
    }

    Replace it with this code

    if(!function_exists('avia_logo'))
    {
    /**
    * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    * otherwise display the logo file linked in the css file for the .bg-logo class
    * @return string the logo + url
    */
    function avia_logo($use_image = "")
    {
    $use_image = apply_filters('avia_logo_filter', $use_image);

    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    $logo = "<h1 class='logo bg-logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    $description = get_bloginfo( 'description' );
    $description = "<div id='site-description'>".$description."</div>";
    }

    $output = $logo;
    $output .= $description;

    return $output;
    }
    }

    Now, on your custom.css, you can do something like this.

    #site-description {
    position: absolute;
    bottom: 80px;
    left: 5px;
    }

    Regards,

    Ismael

    #84780

    Thanks Ismael.

    That works fine. I actually would like to be able to use the image + the Name & Slogan.

    I have tried to add the logo also but no success, how would I add the logo also in a div with a class of “logoimage”.. ?

    Thank you again,

    Brent

    #84781

    Hello,

    Replace it with these,

    if(!function_exists('avia_logo'))
    {
    /**
    * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    * otherwise display the logo file linked in the css file for the .bg-logo class
    * @return string the logo + url
    */
    function avia_logo($use_image = "")
    {
    $use_image = apply_filters('avia_logo_filter', $use_image);

    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    if($use_image) $logo = "<img src=".$use_image." alt='' title='$logo'/>";
    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    $name = get_bloginfo('name');
    $name = "<h1 class='logotext bg-logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    $description = get_bloginfo( 'description' );
    $description = "<div id='site-description'>".$description."</div>";
    }

    $output = $logo;
    $output .= $name;
    $output .= $description;

    return $output;
    }
    }

    You can use the h1.logotext class to style the title.

    Regards,

    Ismael

    #84782

    Hi again Ismael.

    One more time… :)

    So I have modified the header area of my site with assorted CSS & HTML. If you would please look at my site you will see that I am using the WordPress “title” & “slogan” code from you and it works fine. I have added a 110×110 image that I would like to be used as the “logo” image from the WordPress settings. You will see that it is wrapped in it’s own div and it is not in the <h1> tag. This HTML code is located in the header.php file. What I need from you if you can is the php code for just the logo image to be added to my “logoimage” class without effecting the title and slogan.

    http://finecolorgems.com/template1/

    Thank you again for your help! You guys are great!

    Brent

    #84783

    Hi Brent,

    I’m not quite sure if I follow. You want the portrait of the man to be wrapped in the H1 that is holding your text logo (site name) or is it something else?

    Regards,

    Devin

    #84784

    No sorry Devin. :) Guess I wasn’t clear.

    I need to use the WordPress “logo” to be able to replace or change the portrait.

    Ismael gave me code to use the WordPress “title” & “slogan” code for the <h1> tag. I just need to use the “logo” as the image for the portrait.

    Thanks for the fast reply!

    Brent

    #84785

    Hey Devin.

    I believe I need to do something similar to this:

    ” alt=”Dan Sanford, Master Goldsmith”>

    What I need is this code ==> <?php echo get_logo(‘$logo.’); ?>

    Brent

    #84786
    #84787

    ahh, sorry it won’t let me post code on the forum

    #84788

    I think this is closer..

    * <?php echo get_option(‘siteurl’); ?>/images/logo.png *

    #84789

    I got it fixed!

    Thank you!

    Brent

    #84790

    Hey,

    Glad you fixed it.

    If you look on the snippet provided, my guess is you just have to change this line to have the class that you wanted.

    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";

    Regards,

    Ismael

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

The topic ‘No logo image in Choices?’ is closed to new replies.