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
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
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
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
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
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 110x110 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
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
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
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
ahh, sorry it won't let me post code on the forum
I think this is closer..
* <?php echo get_option('siteurl'); ?>/images/logo.png *
I got it fixed!
Thank you!
Brent
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
You must log in to post.