Viewing 5 replies - 1 through 5 (of 5 total)
  • Just checked it on my Chrome browser and it looks like there’s no problem.

    Thread Starter 52saturdaymornings

    (@52saturdaymornings)

    this is my current CSS for my header…
    <head>
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    <meta name=’viewport’ content=’width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no’ />

    <link rel=”profile” href=”https://gmpg.org/xfn/11&#8243; />
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php echo bloginfo(‘rss2_url’); ?>”>

    <?php wp_head(); ?>
    </head>

    I tried changing it to
    <title><?php wp_title(“); ?></title>
    and it gave an error.

    Thread Starter 52saturdaymornings

    (@52saturdaymornings)

    @augustin56 , you are not seeing this excerpt at the top?

    “Kyla Ewert, Abbotsford,BC Annie Otzen, Sioux Falls, SD Breanna Peterson, Kodiak, Alaska Nichole Reid – Winchester, VA Suzanne Gipson, Columbus, Ohio Maria Manco – Cleveland, Ohio Heather Robinson – Durham, NC Alana Rasbach – Nashville, TN Emily Robinson – Hollywood, Florida DeAnna McCasland – Wardensville, WV Missy Day – Woodland, CA Jen Downer | She Saw Things – Portland, […]”

    Yes, but only once. It’s not duplicated. Are you seeing two of those?

    Thread Starter 52saturdaymornings

    (@52saturdaymornings)

    For anyone who has this problem, I placed this code in the functions.php,

    function wp_new_excerpt($text)
    {
    if ($text == ”)
    {
    $text = get_the_content(”);
    $text = strip_shortcodes( $text );
    $text = apply_filters(‘the_content’, $text);
    $text = str_replace(‘]]>’, ‘]]>’, $text);
    $text = strip_tags($text);
    $text = nl2br($text);
    $excerpt_length = apply_filters(‘excerpt_length’, 55);
    $words = explode(‘ ‘, $text, $excerpt_length + 1);
    if (count($words) > $excerpt_length) {
    array_pop($words);
    array_push($words, ”);
    $text = implode(‘ ‘, $words);
    }
    }
    return $text;
    }
    remove_filter(‘get_the_excerpt’, ‘wp_trim_excerpt’);
    add_filter(‘get_the_excerpt’, ‘wp_new_excerpt’);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Duplicating Text to Top of Post’ is closed to new replies.