Link logo header

Posted in: Newsmag
Post count: 59

Hello! We’ve setup a newsletter archive using Newsmag, and our client would like their logo to link back to the main website, rather than the archive. I’m not sure where to change this in the core files.

I hace changed href in logo-h1-php but it doesnt work. Please see code below.
Thanks
P.D. This is my web: https://thezugzwangblog.com/

// 3. For any tdc or vc content, and not the ‘page-pagebuilder-title.php’ is used
$td_use_h1_logo = false;
if (is_home()) {
$td_use_h1_logo = true;
} else if (is_page()) {

global $post;
$_wp_page_template = get_post_meta($post->ID, ‘_wp_page_template’, true );

if (‘page-pagebuilder-title.php’ === $_wp_page_template) {
$td_use_h1_logo = false;
} else if (‘page-pagebuilder-latest.php’ === $_wp_page_template) {
$td_use_h1_logo = true;
} else if ( td_util::is_pagebuilder_content($post)) {
$td_use_h1_logo = true;
}
}

if (!empty($td_customLogoR)) { // if retina
if($td_use_h1_logo === true) {
echo ‘<h1 class=”td-logo”>’;
};
?>

” src=”<?php echo $td_customLogo?>” alt=”<?php echo

$td_logo_alt ?>”<?php echo $td_logo_title ?>/>
<span class=”td-visual-hidden”><?php bloginfo(‘name’); ?></span>

<?php
if($td_use_h1_logo === true) {
echo ‘</h1>’;
};
} else { // not retina
if (!empty($td_customLogo)) {
if($td_use_h1_logo === true) {
echo ‘<h1 class=”td-logo”>’;
};
?>

” alt=”<?php echo $td_logo_alt ?>”<?php echo $td_logo_title ?>/>
<span class=”td-visual-hidden”><?php bloginfo(‘name’); ?></span>

<?php
if($td_use_h1_logo === true) {
echo ‘</h1>’;
};
}
}

Thanks!

Post count: 23312

Hello,

Please notice that’s the main functionality for the logo. I have inspected your website and the logo seems to work as expected.

Thanks for your understanding!

Post count: 59

Hello,
What I wanted to say is that I would like the logo to redirect to an external url. I have changed the URL in the log-h1.php and logo.php files but it does not work.
Sorry for the translation error.
Thank you

Post count: 23312

Hello TheZugzwangBlog,

You should use a plugin if you want to make some redirect, like 301 Redirect or also, you should edit the theme core files where the logo is created. Also, if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thanks for the message!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.