• artbykarieann

    (@artbykarieann)


    Hello,
    I’ve been but back and forth looking at other q+a’s but can’t find how to fix.
    This is my header.php

    <?php global $wp_locale;
    if (isset($wp_locale)) {
    	$wp_locale->text_direction = 'ltr';
    } ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo('charset') ?>" />
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <!-- Created by Artisteer v4.3.0.60745 -->
    <!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" media="screen" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php
    remove_action('wp_head', 'wp_generator');
    if (is_singular() && get_option('thread_comments')) {
    	wp_enqueue_script('comment-reply');
    }
    wp_head();
    ?>
    </head>
    <body <?php body_class(); ?>>
    
    <div id="art-main">
        <div class="art-sheet clearfix">
    
    <?php if(theme_has_layout_part("header")) : ?>
    <header class="art-header<?php echo (theme_get_option('theme_header_clickable') ? ' clickable' : ''); ?>"><?php get_sidebar('header'); ?></header>
    <?php endif; ?>
    
    <?php if (theme_get_option('theme_use_default_menu')) { wp_nav_menu( array('theme_location' => 'primary-menu') );} else { ?><nav class="art-nav">
        <?php
    	echo theme_get_menu(array(
    			'source' => theme_get_option('theme_menu_source'),
    			'depth' => theme_get_option('theme_menu_depth'),
    			'menu' => 'primary-menu',
    			'class' => 'art-hmenu'
    		)
    	);
    	get_sidebar('nav');
    ?>
        </nav><?php } ?>
    <div class="art-layout-wrapper">
                    <div class="art-content-layout">
                        <div class="art-content-layout-row">
                            <div class="art-layout-cell art-content">'

    I use artisteer to create my themes as well as yoast. I did find a fix of removing all my pages, adding a new theme and then I was able to use yoast to add the description etc. Sadly I chose ‘clear’ as my theme name and it’s already a wordpress one and I stupidly updated it loosing all my formats. I reverted to a previous theme when realising this and uploaded my theme again with a new name. The meta from the previous theme was added from the old theme again and I either have to delete everything and add each page one by one with all meta via yoast again or suffer the double meta. The answers I have found say to add this
    ‘remove_action(‘wp_head’, ‘wp_generator’);’
    but my header.php already has this. Can someone offer me any help please. Sorry for the ramble but I am not too technical so if you can make it so obvious a 2 year old could do it, that would be really helpful.
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter artbykarieann

    (@artbykarieann)

    Sorry, forgot, this is my website http://www.artbykarie-ann.co.uk
    Thanks!

    WPyogi

    (@wpyogi)

    Have you asked Artisteer about this? They’re likely the best ones to ask about something like this.

    Thread Starter artbykarieann

    (@artbykarieann)

    Yes, they say they fixed it provided you upload your theme before creating any pages. You cannot create the pages in artisteer and upload them to wordpress otherwise the meta comes with it. Technically I did create my pages in wordpress originally as I copied and pasted from artisteer into a new wordpress page each time. I was really hoping there was a short cut rather than having to delete my site and starting all over again (even if it is ust copy and paste) I’m guessing not! Thanks for the quick reply though, so you don’t think there is anything I can do?

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

The topic ‘Double meta description’ is closed to new replies.