Removing link from site title
-
Morning all,
I’m in the process of setting up my first blog, and am learning as I go…
So, what I am trying to do is to remove the link to my homepage from the title of my site. I am using the Hueman theme, but have created a child theme. The only modification I have made so far is one to change the colour of the links within my site:
/* Theme Name: Hueman Child Description: Hueman Child Theme Author: Neil Template: hueman Version: 1.0.0 Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: twenty-fourteen-child */ @import url("../hueman/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */ <style> <!-- .entry a:link {color: #1400ED; background-color: transparent; text-decoration: underline; } .entry a:visited {color: #C4B7F7; text-decoration: none; } .entry a:hover {color: #FA0000; text-decoration: underline; } .site-title a { display: block; color: #1400ED; max-width: 100%; } --> </style>Unfortunately, this has resulted in my site title at the top of each page also taking on these properties (ie, becoming blue), something that I don’t want. Is it therefore possible to either exclude the site title from the changes above, or to prevent the site title from being a link?
In my attempt to solve this, I have also added a header.php file to my child theme, and attempted to amend the following code…
</div> <?php endif; ?> <?php if ( ot_get_option('header-image') ): ?> <a href="<?php echo home_url('/'); ?>" rel="home"> <img class="site-image" src="<?php echo ot_get_option('header-image'); ?>" alt="<?php get_bloginfo('name'); ?>"> </a> <?php endif; ?>…removing the lines between 4 and 7 above, but to no effect.
Any help here would be much appreciated!
The topic ‘Removing link from site title’ is closed to new replies.