Home>Support>H1 tag

H1 tag

By lolo143, 9 years ago. Last reply by Daniel, 9 years ago.

Hi Addo,
I’m little confused, i have listed below what i have done so far
STEP 1:
Go to vantagewp-contentthemesvantageinctemplate-tags.php around line 181 change:
$logo_html = ”.get_bloginfo( ‘name’ ).”;
to
$logo_html = ”.get_bloginfo( ‘name’ ).”;

ABOVE CHANGES DONE IN THE PARENT THEME template-tags.php (as the child theme did not contain template-tags.php file BUT IT ONLY HAD functions.php file)

STEP 2: (i do use child theme)
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:

<?php
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 = '’.get_bloginfo( ‘name’ ).”;
$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’, ”);
}

// Echo the image
echo apply_filters(‘vantage_logo_html’, $logo_html);
}
endif; ?>

DID I DO IT RIGHT ?
( i edited the template-tags.php from the main vantage theme as this file was not there in the CHILD THEME folder and I also edited the functions.php in CHILD THEME folder.

H1 tag from the logo is gone but im not sure i did it right or what ?

is there any way i can send you the attachment of Custom CSS and PHP file which i have edited so far.

Thank for the help
sorry for the trouble
regards
Stan

URL: http://stanleyseveres.com

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 5 months ago Daniel
    Hi, I Work Here

    Hi Stan,

    For future reference, please ensure you reply to the same thread to ensure a complete follow up of your issue.

    Am glad you managed to iron out that issue :)

    About the child theme, here is a guide on how to make use of it. Kindly take a look.

    Link: http://codex.wordpress.org/Child_Themes

    NOTE: If you made changes to theme files, the changes will get lost during theme updates.

    Let me know if you require further assistance from here and will jump right to it.

    Cheers :)

  2. 9 years, 5 months ago lolo143

    Hi Addo,I used the plugin to create the child theme "one click child theme"  i hope that is ok one more thing what is this link
    http://www.csshero.org/themes/vantage/ is by you guys thanks for the helpRegardsStanley
     

  3. 9 years, 5 months ago Daniel
    Hi, I Work Here

    Hi Stan

    That’s ok :)

    The link there just points out to one of our themes

    Your welcome.

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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More