Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to make image/logo in the header clickable
Tagged: functions.php, genesis, header, image, Logo
- This topic has 3 replies, 2 voices, and was last updated 7 years, 7 months ago by luisolano.
-
AuthorPosts
-
August 30, 2016 at 10:53 am #192337luisolanoMember
Hello!
I,m very new to WordPress and still trying to learn all the basics.
I am working with Genesis Framework.
My child theme is Jano (http://themes.janhoek.com/genesis-themes/jano/)
The matter is that I canĀ“t make the logo/image in the header of my frontpage clickable as a link to the homepage.
AS you know I can add a logo through the wp-admin by selecting it in Appearence>customize>
I also can do add it to the style.css code here:
/* Logo, hide text */
.header-image .site-header .wrap {
background: url(images/logo2.png) no-repeat left;
padding: 0;
}
.header-image .site-title a {
float: left;
min-height: 164px;
width: 100%;
}I don't have a header.php file. I have frontpage.php, style.css and functions.php instead.
The theme is working with text title (linking to the homepage) by default.Please, any help on this issue will be highly appreciated.
Thanks!August 30, 2016 at 11:06 am #192340Victor FontModeratorYou don't have to do anything to make a header image clickable. Once you add a header image through customize/header image, it's automatically clickable.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?August 30, 2016 at 11:39 am #192346luisolanoMemberThank you for answering Victor.
The problem it is actually not clickable (unless I resize the window to a very small one and then the "hidden" text title is clickable).This is the beginning of my frontpage.php
<?php
/**
* Jano Home Page.
*/// Force full width content layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );// Remove the default Genesis loop
remove_action( 'genesis_loop', 'genesis_do_loop' );remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
// Add custom homepage content
add_action( 'genesis_loop', 'one_jan_homepage_content' );
function one_jan_homepage_content() { ?>As it is a onepager theme then come the sections About, Blog, Portfolio, etc.
And these are the only references to the title area or header in the functions-php:
// Reposition the breadcrumbs
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );add_filter ( 'genesis_home_crumb', 'jano_breadcrumb_home_link' ); // Genesis >= 1.5
function jano_breadcrumb_home_link( $crumb ) {
$crumb = '<i class="fa fa-home"></i>';
return $crumb;
}//* Remove tagline from header
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );August 31, 2016 at 2:38 am #192405luisolanoMemberVictor, thank you for answering.
My theme does not include "header" as an option to modify in appearences in wp-admin.
And if I change Dynamic Text for Logo Image in customize, the image is not clickable as the text was (at least as long as I also have a menu in the Header Right Widget).Regards,
Luis Olano
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.