The code snippet you are trying to save produced a fatal error on line 5:
syntax error, unexpected ‘<‘
It is clear that this line is problematic:
<div id="masthead" style="cursor: pointer;" onclick="location.href='https://knihazivota.cz'"></div>
But no matter what I do, I always get an error. This code should be correct (it is copied from a tutorial).
Do you have any idea what I’m doing wrong?
thank you for answer
Thank you so much for your help!
]]>I am using Avada 3.8.6 for my website and need help with a couple of things
1. Is it possible to make the header logo image clickable? I am asking because I would like the header logo to link back to the “Home” page.
When I click customize>header image, the only option I see is adding the image. However, I don’t see any way to make that image clickable.
2. Is there a way to change the breadcrumbs location or position?
I had accidentally moved the breadcrumbs links to the right side (I don’t remember how that happened), and would like to move them back to the left side. I checked some Avada forums and they claimed that changing the breadcrumb location is not possible, however, if it moved once, it should be able to move back.
3. Is there a way to increase line height for selected paragraphs in pages. It is default set at 27px and it works well in most places, but in the introductory paragraphs it would be good to have 31px.
Apologies for the many questions.
Thanks
I am trying to make the header of my site clickable. We are using a banner image for the header. Also, after updating to the new version of Mesocolumn the custom colors that we set up for our categories only held for some of the categories and we can’t figure out where to edit. Can you help? Our blog is https://storiesfromthecottage.com
Thanks!
]]>How to make a header logo clickable to main page?
I know that this question was already discussed here https://www.ads-software.com/support/topic/header-clickable-2?replies=2
But when I embedded the code in function.php (as advised) my site crashed with “Cannot modify header information” error.
Maybe there is some other way to do this?
Pls help.
Thanx
]]>I wanted the header image of my page to redirect to the main page when clicked.
However all of the solutions I’ve found don’t work with the way the Storefront theme has its header set up:
<header id="masthead" class="site-header" role="banner" <?php if ( get_header_image() != '' ) { echo 'style="background-image: url(' . esc_url( get_header_image() ) . ');"'; } ?>>
I was wondering if anyone knew how I could implement this function?
Any help would be greatly appreciated.
Al
Thanks!
Amanda
Please help me on that.
]]>Below is my header.php:
<?php
/**
* Displays the header section of the theme.
*
* @package Theme Horse
* @subpackage Attitude
* @since Attitude 1.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php
/**
* attitude_title hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* attitude_add_meta 5
* attitude_show_title 10
*
*/
do_action( 'attitude_title' );
/**
* attitude_meta hook
*/
do_action( 'attitude_meta' );
/**
* attitude_links hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* attitude_add_links 10
* attitude_favicon 15
* attitude_webpageicon 20
*
*/
do_action( 'attitude_links' );
do_action( 'attitude_favicon' );
/**
* This hook is important for wordpress plugins and other many things
*/
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<?php
/**
* attitude_before hook
*/
do_action( 'attitude_before' );
?>
<div class="wrapper">
<?php
/**
* attitude_before_header hook
*/
do_action( 'attitude_before_header' );
?>
<header id="branding" >
<?php
/**
* attitude_header hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* attitude_headerdetails 10
*/
do_action( 'attitude_header' );
?>
</header>
<?php
/**
* attitude_after_header hook
*/
do_action( 'attitude_after_header' );
?>
<?php
/**
* attitude_before_main hook
*/
do_action( 'attitude_before_main' );
?>
<div id="main" class="container clearfix">
And before you ask me again, yes, I have a child theme created; however, I am still unable to make the header link to my homepage.
Any help is greatly appreciated as I imagine other people would like an answer to this issue as well.
thanks,
]]>