Viewing 5 replies - 1 through 5 (of 5 total)
  • you will need more than just CSS for that;

    please post your question in your theme’s forum at https://wordpress.org/support/theme/mh-newsdesk-lite

    Thread Starter tigershroof

    (@tigershroof)

    okie thanks.

    i am not expert but you can try this but you need to edit theme header you can get search form with get_search_form()

    ——–header code —
    <div class=”logo”>
    <h1 class=”logo-title”>Theme Preview</h1>
    <h2 class=”logo-tagline”>Previewing Another WordPress Blog</h2>
    </div>
    
    <div class=”header-search”><?php get_search_form(); ?></div>
    
    <div class=”news-ticker”><!– INSTALL NEWS TICKER PLUGIN AND PLACE SHORTCODE HERE –></div>
    
    ——–end header code —

    CSS something like this:

    .logo{ display:inline-block; }
    
    .header-search {display:inline-block;}
    
    .news-ticker {display:inline-block;}

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 8 years, 11 months ago by bdbrown.
    Thread Starter tigershroof

    (@tigershroof)

    Thanks a ton buddy. The Search Form came up fine but the News Ticker shows nothing. Do I need to install News Ticker Plugin before it will show anything. Also where should I paste the News Ticker Code in the Header.php file. I have pasted the actual code below of Header.Php code.

    <!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″>
    <link rel=”profile” href=”http://gmpg.org/xfn/11″ />
    <?php if (is_singular() && pings_open(get_queried_object())) : ?>
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php endif; ?>
    <?php wp_head(); ?>
    <div class=”news-ticker”><!– INSTALL NEWS TICKER PLUGIN AND PLACE SHORTCODE HERE –></div>
    
    </head>
    <body <?php body_class(); ?>>
    <div id=”mh-wrapper”>
    <header class=”mh-header”>
    <div class=”header-wrap clearfix”>
    <?php mh_newsdesk_lite_logo(); ?>
    <div class=”header-search”><?php get_search_form(); ?></div>
    
    </div>
    <div class=”header-menu clearfix”>
    <nav class=”main-nav clearfix”>
    <?php wp_nav_menu(array(‘theme_location’ => ‘main_nav’)); ?>
    </nav>
    </div>
    </header>
    .logo{ display:inline-block; }
    
    .header-search {display:inline-block;}
    
    .news-ticker {display:inline-block;}

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 8 years, 11 months ago by bdbrown.
    • This reply was modified 8 years, 11 months ago by bdbrown.

    Yes your need to install news ticker plugin and place the shortcode or the code the plugin will generate.
    and place ticker code after <body <?php body_class(); ?>>

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 8 years, 11 months ago by bdbrown.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘CSS Code Help’ is closed to new replies.