• Human Theme – How to edit page source? I can right click on Home page and see the source, but do not see the same source in header.php.
    What I am trying to do is remove the twitter card from the source. I can not remember which plugin it was, but it left the twitter card og meta in source code when I uninstalled it. I am using Yoast and when I click the check box for twitter card Google seo tells me there are two twitter cards and to remove one before Google considers it spamming.

    Simple all I need is to remove this see link
    https://drive.google.com/file/d/0B7wRpApg2VxmSmRCbFJxMmppZTQ/edit?usp=sharing

Viewing 9 replies - 1 through 9 (of 9 total)
  • If you’re not seeing the code you need to remove in header.php, look carefully for references to other php files. It’s likely that since this was added by a plugin that there’s another file being referenced with the old data.

    Thread Starter AutoHelpRepair

    (@autohelprepair)

    Correct, I do not see the twitter card in header.php. So there is not one file to go to to see exactly as the page source? I have looked at all the php files in file manager and in wp-admin – themes Editor – nothing. I was told it could be in the iframe? which I have no idea about as well.

    You can’t load an iframe in a header… so it won’t be that. Can you post a screenshot of your header.php?

    Thread Starter AutoHelpRepair

    (@autohelprepair)

    <!DOCTYPE html>
    <html class=”no-js” <?php language_attributes(); ?>>

    <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>

    <body <?php body_class(); ?>>

    <div id=”wrapper”>

    <header id=”header”>

    <?php if ( has_nav_menu(‘topbar’) ): ?>
    <nav class=”nav-container group” id=”nav-topbar”>
    <div class=”nav-toggle”><i class=”fa fa-bars”></i></div>
    <div class=”nav-text”><!– put your mobile menu text here –></div>
    <div class=”nav-wrap container”><?php wp_nav_menu(array(‘theme_location’=>’topbar’,’menu_class’=>’nav container-inner group’,’container’=>”,’menu_id’ => ”,’fallback_cb’=> false)); ?></div>

    <div class=”container”>
    <div class=”container-inner”>
    <div class=”toggle-search”><i class=”fa fa-search”></i></div>
    <div class=”search-expand”>
    <div class=”search-expand-inner”>
    <?php get_search_form(); ?>
    </div>
    </div>
    </div><!–/.container-inner–>
    </div><!–/.container–>

    </nav><!–/#nav-topbar–>
    <?php endif; ?>

    <div class=”container group”>
    <div class=”container-inner”>

    <?php if ( ot_get_option(‘header-image’) == ” ): ?>
    <div class=”group pad”>
    <?php echo alx_site_title(); ?>
    <?php if ( ot_get_option(‘site-description’) != ‘off’ ): ?><p class=”site-description”><?php bloginfo( ‘description’ ); ?></p><?php endif; ?>
    </div>
    <?php endif; ?>
    <?php if ( ot_get_option(‘header-image’) ): ?>
    ” rel=”home”>
    <img class=”site-image” src=”<?php echo ot_get_option(‘header-image’); ?>” alt=”<?php get_bloginfo(‘name’); ?>”>

    <?php endif; ?>

    <?php if ( has_nav_menu(‘header’) ): ?>
    <nav class=”nav-container group” id=”nav-header”>
    <div class=”nav-toggle”><i class=”fa fa-bars”></i></div>
    <div class=”nav-text”><!– put your mobile menu text here –></div>
    <div class=”nav-wrap container”><?php wp_nav_menu(array(‘theme_location’=>’header’,’menu_class’=>’nav container-inner group’,’container’=>”,’menu_id’ => ”,’fallback_cb’=> false)); ?></div>
    </nav><!–/#nav-header–>
    <?php endif; ?>

    </div><!–/.container-inner–>
    </div><!–/.container–>

    </header><!–/#header–>

    <div class=”container” id=”page”>
    <div class=”container-inner”>
    <div class=”main”>
    <div class=”main-inner group”>

    Do you have any files that are named like header-*.php ? The only thing I can think of is that <?php wp_head(); ?> is calling an additional header template… which would have to be in your theme folder and called header-________.php

    Thread Starter AutoHelpRepair

    (@autohelprepair)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    And which theme is this regarding?

    Thread Starter AutoHelpRepair

    (@autohelprepair)

    Hueman

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to edit Source Code ?’ is closed to new replies.