Two Header Taglines alternately displayed.

Hi Guys!

Hope you are all well today?

This may just be the "craziest" Question I have asked to date!!!!

Is it possible to replace the 'General Settings' static 'Site Tagline', with two 'repeat & alternating' Taglines?

What I have in mind is for the 'Header' to first show (on http://www.web-me.at):-

"Online Personal Branding"

and then:-

"Personally Branded Websites"

...and then to continue to 'loop play' this!!!!!

Yours Hesitantly!

johnv

  • Tyler Postle

    Hey John,

    Hope you're doing well today!

    You could do this with this plugin here: https://wordpress.org/plugins/text-slider/

    It would require altering your header template file, as you would want to replace the tagline output with the slider shortcode :slight_smile:

    like this:

    <?php text_slider(); ?>

    What you will be replacing will probably look like this:

    <?php bloginfo('description'); ?>

    Make sure you have a child theme to place your new header.php in so your edits will remain saved :slight_smile:

    https://codex.wordpress.org/Child_Themes

    Let us know if you have any further questions on this John!

    Cheers,
    Tyler

  • john

    Hi Tyler.

    Hope your well today?

    I ran into a little bit of difficulty, by way of a 'blank screen', with the exception of the 'Header' Logo!!

    Could you please advise where I place " <?php text_slider(); ?> " please?

    <?php

    /**

    * The theme header.

    *

    * Displays the <head> section, the site branding and the main navigation.

    *

    * @package webme

    * @since webme 1.0

    * @copyright 2014 John Voce

    *

    * This program is free software: you can redistribute it and/or modify

    * it under the terms of the GNU General Public License as published by

    * the Free Software Foundation, either version 2 of the License, or

    * (at your option) any later version.

    *

    * This program is distributed in the hope that it will be useful,

    * but WITHOUT ANY WARRANTY; without even the implied warranty of

    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

    * GNU General Public License for more details.

    * You should have received a copy of the GNU General Public License

    * along with this program. If not, see <http://www.gnu.org/licenses/>.

    */

    ?>

    <!DOCTYPE html>

    <html <?php language_attributes(); ?>>

    <head>

    <meta charset="<?php bloginfo( 'charset' ); ?>" />

    <title>

    <?php wp_title( ' | ', true, 'right'); // Check functions.php ?>

    </title>

    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />

    <link rel="profile" target="_blank" href="http://gmpg.org/xfn/11" />

    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

    <?php

    if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script('comment-reply'); // We need this to have threaded comments

    wp_head();

    ?>

    </head>

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

    <div id="container" class="hfeed">

    <div id="header">

    <div class="imagetop">

    "> <img src="<?php bloginfo('template_url');?>/images/logo1.png" >

    </div>

    <!-- <div id="branding" role="banner">

    -->

    <!-- <h1 id="site-title">" href="<?php// echo home_url('/'); ?>"><?php// bloginfo('name'); ?></h1>

    -->

    <!-- <h2 id="site-description">--><?php// bloginfo('description'); ?><!--//Personal Brand Register</h2>--> <!--static site name-->

    <!-- </div> -->

    <?php wp_nav_menu( array(

    'theme_location' => 'main-nav',

    'container' => '',

    'menu_id' => 'main-nav',

    'depth' => 1,

    'fallback_cb' => ''

    ) );

    ?>

    </div>

    <div id="content" role="main">

  • Tyler Postle

    Hey John,

    hope you're doing well today!

    You will want to use it to replace this line here:

    <!-- <h2 id="site-description">--><?php// bloginfo('description'); ?><!--//Personal Brand Register</h2>--> <!--static site name-->

    That way you are removing your current site description and replacing it with the text slider :slight_smile:

    Hope that helps! if you still need any further assistance just let us know. We can take a closer look if needed.

    All the best,
    Tyler

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.