• Resolved Thomas Nichols

    (@thomasnichols89)


    I’m fairly new to WordPress but not to HTML or CSS. I’m currently creating a site at blog.inaudiblepc.com, and once I have it running the way I want I will transfer it to the parent domain of InaudiblePC.com.

    I have installed the “Hueman” Theme and have been able to tweak it to get the desired results. I’m now on clean up. I simply want to clean things up so that all code validates. I’ve been able to find all the “invalid” CSS and can see how I will clean that up, but I’m having an issue with my head.

    The hueman theme includes font options in “Theme Option >> Styling” and I’ve chosen Open Sans. Unfortunately the code it inserts into the head is not quite valid, and requires a minor tweak in order to fix.

    Here’s my problem, I can’t find the file. I went to “Appearance” >> “Editor” and found the header.php file. The head section looks as follows:

    <head>
    	<meta charset="<?php bloginfo('charset'); ?>">
    	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    	<title><?php wp_title(''); ?></title>
    
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
    
    	<?php wp_head(); ?>
    </head>

    When I look at my actual site and check the head, I see the charset, then the viewport declaration, then the title, and then several links to stylesheets and other components. the third link down on this list is the fonts link, and is the line I want to edit. I’m simply assuming that the line <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> is whats calling and populating this area.

    So where is this bloginfo(‘pingback url’) I’m sure that’s the file I need to edit but I simply cannot find it! (Might be a really dumb question, but I appreciate the help)

    Any and all help would be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Actually, the pingback_url is not what you need to edit.

    The issue is a stubborn ampresend in the google font link. This line is being called from dynamic-styles.php, inside the functions files. Look at lines 35-45. You can change the & to amp;.

    Your best bet though it to take a look at creating a child theme of this theme and making the changes there, to avoid them being overwritten when the theme is udated.

    Thread Starter Thomas Nichols

    (@thomasnichols89)

    Thank you! That was it! Perfectly validated HTML, now on to the CSS. Also thanks for the tip on child theme, I’ll google that now and get that figured out. I hadn’t thought about updates by the theme provider so thanks!

    Thread Starter Thomas Nichols

    (@thomasnichols89)

    Forgot to close 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Accessing head’ is closed to new replies.