H1 tag
Hi Addo,
I did what you asked me to do
(Go to vantagewp-contentthemesvantageinctemplate-tags.php around line 181 change:
$logo_html = ”.get_bloginfo( ‘name’ ).”;
to
$logo_html = ”.get_bloginfo( ‘name’ ).”;
BUT
it did not work, the H1 tag is still showing in the logo area, check stanleyseveres.com
Regards
Stan
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi Stan,
Do you use a child theme? If so within your child theme, within the functions.php file, somewhere after the opening PHP tag you’d need to insert the following:
if(!function_exists('vantage_display_logo')): /** * Display the logo */ function vantage_display_logo(){ $logo = siteorigin_setting( 'logo_image' ); $logo = apply_filters('vantage_logo_image_id', $logo); if( empty($logo) ) { // Just display the site title $logo_html = '<h2 class="site-title">'.get_bloginfo( 'name' ).'</h2>'; $logo_html = apply_filters('vantage_logo_text', $logo_html); } else { // load the logo image if(is_array($logo)) { list ($src, $height, $width) = $logo; } else { $image = wp_get_attachment_image_src($logo, 'full'); $src = $image[0]; $height = $image[2]; $width = $image[1]; } // Add all the logo attributes $logo_attributes = apply_filters('vantage_logo_image_attributes', array( 'src' => $src, 'width' => round($width), 'height' => round($height), 'alt' => sprintf( __('%s Logo', 'vantage'), get_bloginfo('name') ), ) ); if($logo_attributes['width'] > vantage_get_site_width()) { // Don't let the width be more than the site width. $width = vantage_get_site_width(); $logo_attributes['height'] = round($logo_attributes['height'] / ($logo_attributes['width'] / $width)); $logo_attributes['width'] = $width; } $logo_attributes_str = array(); if( !empty( $logo_attributes ) ) { foreach($logo_attributes as $name => $val) { if( empty($val) ) continue; $logo_attributes_str[] = $name.'="'.esc_attr($val).'" '; } } $logo_html = apply_filters('vantage_logo_image', '<img '.implode( ' ', $logo_attributes_str ).' />'); } // Echo the image echo apply_filters('vantage_logo_html', $logo_html); } endif;Let me know the outcome
Cheers
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.