• Resolved sunchiller

    (@sunchiller)


    Hello,
    I am hardly trying to hide the page title and description in the header but want to keep it in the browser tap. (Theme justwrite)
    Can anyone help me please. I tried to implement it in CSS and header.php but didn’t know where and what code to use. at the end it didn’t work. the title was still there but my header background was deleted.

    Thanks a lot for your help

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter sunchiller

    (@sunchiller)

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <meta name=”viewport” content=”width=device-width” />
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
    <?php wp_head(); ?>
    </head>

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

    <?php
    // After the <body> tag starts hook
    ac_after_body();
    ?>

    <header id=”main-header” class=”header-wrap”>

    <div class=”wrap”>

    <div class=”top<?php ac_mini_disabled() ?>”>

    <div class=”logo”>
    ” title=”<?php bloginfo( ‘title’ ); ?>” class=”logo-contents<?php ac_logo_class(); ?>”><?php ac_get_logo(); ?>
    <?php
    // Ads variables – Options Panel
    $ad728_show = of_get_option( ‘ac_ad728_show’ );
    $ad728_code = of_get_option( ‘ac_ad728_code’ );

    if ( $ad728_code == ” ) :
    ?>
    <h2 class=”description”><?php bloginfo( ‘description’ ); ?></h2>
    <?php endif; ?>
    </div><!– END .logo –>

    Give us a link.

    Thread Starter sunchiller

    (@sunchiller)

    hello. thanks for your respone. you mean to my site? i am in the development process. so haven’t launched my page.

    I see. I would have tried to hide the titles with “display:none;”. I don’t know what you mean by “browser tap”.

    Thread Starter sunchiller

    (@sunchiller)

    Thank you!
    Where would you add this code in the above php?
    Sorry I am a freshman 🙂
    by browser tap I mean the field above the adress line which includes the favicon e.g. WordPress > Support …

    I have the option to delete the page title and description from my header which is fine to only show the background image but then the title disappears also from the tap with the favicon in it.

    “display:none;” is a css, not php property. If you want to hide the description, you apply the property to the h2 tag with the class “description”.

    Thread Starter sunchiller

    (@sunchiller)

    sorry,
    still haven’t managed to implement this successfully.
    Do I go to CSS Stylesheet Editor?
    What exactly do I have to type in in order for it to work?
    What would the programming code be, so that it fully works at the end?

    I’m sorry, but since you are in a development stage and you cannot point me to the address of your website, I’m unable to help you.

    Thread Starter sunchiller

    (@sunchiller)

    many thanks anyway for your time and help! 🙂
    had to delete this bit here for it to work

    <div class=”logo”>
    ” title=”<?php bloginfo( ‘title’ ); ?>” class=”logo-contents<?php ac_logo_class(); ?>”><?php ac_get_logo(); ?>
    <?php
    // Ads variables – Options Panel
    $ad728_show = of_get_option( ‘ac_ad728_show’ );
    $ad728_code = of_get_option( ‘ac_ad728_code’ );

    if ( $ad728_code == ” ) :
    ?>
    <h2 class=”description”><?php bloginfo( ‘description’ ); ?></h2>
    <?php endif; ?>
    </div><!– END .logo –>

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

The topic ‘Hiding page title and description (Theme: justwrite)’ is closed to new replies.