remove titlu sit
-
buna ziua as vrea ca in header sa nu apara si titlu sit , cum as putea sa scot?
sit-ul este chaosmedia90.com si vreau sa dispara chaosmedia90.com de deasupra
-
Presupunând că folosești tema Weaver cum scrie în footer și că nu ai făcut prea mult modificări, deschide fișierul header.php și șterge bucata asta de cod – liniile 86 – 101
<?php /* ======== SITE TITLE ======== */ if (!weaver_is_checked_page_opt('ttw-hide-site-title')) { ?> <div id="ttw-site-logo"></div> <div id="ttw-site-logo-link" onclick="location.href='<?php echo home_url( '/' ); ?>';" style="cursor:pointer;"></div> <?php if (!weaver_getopt('ttw_hide_site_title')){ /* TTW - hide site title */ ?> <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?> <<?php echo $heading_tag; ?> id="site-title"> <span> <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> </span> </<?php echo $heading_tag; ?>> <div id="site-description"><?php bloginfo( 'description' ); ?></div> <?php } /* end hide site title if */ } /* end per page hide-site-title */ ?>
eu am asa
<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="main"> * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title><?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', TTW_TRANS ), max( $paged, $page ) ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="wrapper" class="hfeed"> <?php ttw_put_area('preheader'); ?> <div id="header"> <?php if (is_active_sidebar('header-widget-area')) { // header widget ob_start(); /* let's use output buffering to allow use of Dynamic Widgets plugin and not have empty sidebar */ $success = dynamic_sidebar('header-widget-area'); $content = ob_get_clean(); if ($success) { ?> <div id="ttw-head-widget" class="ttw-head-widget-area" role="complementary" > <?php echo($content) ; ?> </div> <!-- #ttw-header-widget --> <?php } } ?> <div id="masthead"> <div id="branding" role="banner"> <div id="ttw-site-logo"></div> <div id="ttw-site-logo-link" onclick="location.href='<?php echo home_url( '/' ); ?>';" style="cursor:pointer;"></div> <?php if (!ttw_getopt('ttw_hide_site_title')){ /* TTW - hide site title */ ?> <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?> <<?php echo $heading_tag; ?> id="site-title"> <span> <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> </span> </<?php echo $heading_tag; ?>> <div id="site-description"><?php bloginfo( 'description' ); ?></div> <?php } /* end hide site title if */ ?> <?php if (!ttw_getopt('ttw_hide_menu') && ttw_getopt('ttw_move_menu')) { /* TTW: move header */ ?> <div id="access" role="navigation"> <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', TTW_TRANS ); ?>"><?php _e( 'Skip to content', TTW_TRANS ); ?></a></div> <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> </div><!-- #access --> <?php } ?> <?php if (!ttw_getopt('ttw_hide_menu') && !ttw_getopt('ttw_move_menu')) { /* don't move header */ ?> <div id="access2" role="navigation"> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', TTW_TRANS ); ?>"><?php _e( 'Skip to content', TTW_TRANS ); ?></a></div> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'secondary', 'fallback_cb' => '' ) ); ?> </div><!-- #access2 --> <?php } ?> <?php if (ttw_getopt('ttw_header_insert')) { /* header insert defined? */ if (ttw_getopt('ttw_header_frontpage_only')) { if (is_front_page()) echo (do_shortcode(str_replace("\\", "", ttw_getopt('ttw_header_insert')))); } else { echo (do_shortcode(str_replace("\\", "", ttw_getopt('ttw_header_insert')))); } } // The Dynamic Headers shows headers on a per page basis - will also optionally add site link if(function_exists('show_media_header')) show_media_header(); // **Dynamic Headers** built-in support for plugin do_action('ttwx_extended_header_insert'); /* add any extension header insert */ do_action('ttwx_super_header_insert'); // future extension if (HEADER_IMAGE_HEIGHT > 0 && !(ttw_getopt('ttw_header_frontpage_only') && is_front_page() )) { if (ttw_getopt('ttw_link_site_image')) { ?> <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <?php } // Check if this is a post or page, if it has a thumbnail, and if it's a big one if ( is_singular() && !ttw_getopt('ttw_hide_featured_header') && has_post_thumbnail( $post->ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && $image[1] >= HEADER_IMAGE_WIDTH ) : // Houston, we have a new header image! echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); else : ?> <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /> <?php endif; if (ttw_getopt('ttw_link_site_image')) echo("</a>\n"); } /* closes header > 0 */ ?> </div><!-- #branding --> <?php if (!ttw_getopt('ttw_hide_menu') && !ttw_getopt('ttw_move_menu')) { /* ttw - move header */ ?> <div id="access" role="navigation"> <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', TTW_TRANS ); ?>"><?php _e( 'Skip to content', TTW_TRANS ); ?></a></div> <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> </div><!-- #access --> <?php } ?> <?php if (!ttw_getopt('ttw_hide_menu') && ttw_getopt('ttw_move_menu')) { /* ttw - move header */ ?> <div id="access2" role="navigation"> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', TTW_TRANS ); ?>"><?php _e( 'Skip to content', TTW_TRANS ); ?></a></div> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'secondary', 'fallback_cb' => '' ) ); ?> </div><!-- #access2 --> <?php } ?> </div><!-- #masthead --> </div><!-- #header --> <?php ttw_put_area('postheader'); ?> <div id="main">
Vezi panoul de control al temei, din cod pare că este o setare care ascunde titlul.
Daca vrei sa dispara chaosmedia90.com de deasupra logheaza-te pe site, apoi Settings > General, iar la Site Title si Tagline scrii ce vrei sa iti apara in loc de numele site-lui, dupa care salvezi.
Daca vrei sa renunti la titlu, copiaza in header.php codul de mai jos. Inainte de asta, fa o copie a fisierului (header.php). Bafta!
<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="main"> * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="wrapper" class="hfeed"> <?php ttw_put_area('preheader'); ?> <div id="header"> <?php if (is_active_sidebar('header-widget-area')) { // header widget ob_start(); /* let's use output buffering to allow use of Dynamic Widgets plugin and not have empty sidebar */ $success = dynamic_sidebar('header-widget-area'); $content = ob_get_clean(); if ($success) { ?> <div id="ttw-head-widget" class="ttw-head-widget-area" role="complementary" > <?php echo($content) ; ?> </div> <!-- #ttw-header-widget --> <?php } } ?> <div id="masthead"> <div id="branding" role="banner"> <div id="ttw-site-logo"></div> <div id="ttw-site-logo-link" onclick="location.href='<?php echo home_url( '/' ); ?>';" style="cursor:pointer;"></div> <?php if (!ttw_getopt('ttw_hide_site_title')){ /* TTW - hide site title */ ?> <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?> <<?php echo $heading_tag; ?> id="site-title"> <span> <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> </span> </<?php echo $heading_tag; ?>> <div id="site-description"><?php bloginfo( 'description' ); ?></div> <?php } /* end hide site title if */ ?> <?php if (!ttw_getopt('ttw_hide_menu') && ttw_getopt('ttw_move_menu')) { /* TTW: move header */ ?> <div id="access" role="navigation"> <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', TTW_TRANS ); ?>"><?php _e( 'Skip to content', TTW_TRANS ); ?></a></div> <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> </div><!-- #access --> <?php } ?> <?php if (!ttw_getopt('ttw_hide_menu') && !ttw_getopt('ttw_move_menu')) { /* don't move header */ ?> <div id="access2" role="navigation"> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', TTW_TRANS ); ?>"><?php _e( 'Skip to content', TTW_TRANS ); ?></a></div> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'secondary', 'fallback_cb' => '' ) ); ?> </div><!-- #access2 --> <?php } ?> <?php if (ttw_getopt('ttw_header_insert')) { /* header insert defined? */ if (ttw_getopt('ttw_header_frontpage_only')) { if (is_front_page()) echo (do_shortcode(str_replace("\\", "", ttw_getopt('ttw_header_insert')))); } else { echo (do_shortcode(str_replace("\\", "", ttw_getopt('ttw_header_insert')))); } } // The Dynamic Headers shows headers on a per page basis - will also optionally add site link if(function_exists('show_media_header')) show_media_header(); // **Dynamic Headers** built-in support for plugin do_action('ttwx_extended_header_insert'); /* add any extension header insert */ do_action('ttwx_super_header_insert'); // future extension if (HEADER_IMAGE_HEIGHT > 0 && !(ttw_getopt('ttw_header_frontpage_only') && is_front_page() )) { if (ttw_getopt('ttw_link_site_image')) { ?> <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <?php } // Check if this is a post or page, if it has a thumbnail, and if it's a big one if ( is_singular() && !ttw_getopt('ttw_hide_featured_header') && has_post_thumbnail( $post->ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && $image[1] >= HEADER_IMAGE_WIDTH ) : // Houston, we have a new header image! echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); else : ?> <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /> <?php endif; if (ttw_getopt('ttw_link_site_image')) echo("</a>\n"); } /* closes header > 0 */ ?> </div><!-- #branding --> <?php if (!ttw_getopt('ttw_hide_menu') && !ttw_getopt('ttw_move_menu')) { /* ttw - move header */ ?> <div id="access" role="navigation"> <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', TTW_TRANS ); ?>"><?php _e( 'Skip to content', TTW_TRANS ); ?></a></div> <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> </div><!-- #access --> <?php } ?> <?php if (!ttw_getopt('ttw_hide_menu') && ttw_getopt('ttw_move_menu')) { /* ttw - move header */ ?> <div id="access2" role="navigation"> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', TTW_TRANS ); ?>"><?php _e( 'Skip to content', TTW_TRANS ); ?></a></div> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'secondary', 'fallback_cb' => '' ) ); ?> </div><!-- #access2 --> <?php } ?> </div><!-- #masthead --> </div><!-- #header --> <?php ttw_put_area('postheader'); ?> <div id="main">
Multumesc , am incercat metoda lui Eugen Paun si am gasit din administrare sit la tema 🙂
Buna ziua !
Referitor la aceasta discutie, am si eu un site care e al unui prieten si in anumite pagini in catgoriea (products) nu apare niciun meniu de navigare (nici sus si nici jos). Stiu ca sunt anumite teme care nu arata meniul de navigare in toate paginile. Acum site-ul fiind facut si luand in calcul acest lucru ma poate ajuta cineva cum pot sa afisez meniul si pe aceste pagini ?
Un din paginile problema este aceasta: http://www.motoare-barca.ro/products/catalog-piese-motoare-inboard/
Imi cer scuze pentru lostarea link-ului, nu incerc sa fac niciun fel de reclama.
Va multumesc anticipat !
- Subiectul „remove titlu sit” este închis pentru răspunsuri noi.