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!
-
This topic was modified 7 years by
TheZugzwangBlog.
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
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!