removing titles

Hi Guys,

I was wondering whats the best way to remove the page titles to each of the pages here http://burgessgalvin.ie/new

About, services, etc..

Thanks guys
jonathanduane2010Asked:
Who is Participating?
 
Ronak PatelCommented:
Hi jonathanduane2010,

I just extracted that code from page source of your site. I have attached the whole source of Home Page of your site.
I am not sure where it might be located until I review the actual page source.

But I guess, it might have located in some javascript (.js) file which is included on every page of your site. OR, it might directly present on every page (at the end) in <script type="text/javascript"> script block.


Hope this helps.

Regards,
Ronak

HomePage-PageSource.txt
0
 
Edwin HofferTechnical ExpertCommented:
Hello Jonathanduane,

To remove title from every page open Appearance >> Editor >> Header.php and remove "title".

Hope that helped you.

Best Regards
0
 
Ronak PatelCommented:
Hi jonathanduane2010,

You have to just comment/remove the <div class="header-text-container"> div element.

Also, you have to comment/remove the javascript code, in which this div element is referenced.

For Example:

if(jQuery(".header-text-container")){
	resizeMainHeaders();
}

function resizeMainHeaders(){
	jQuery(".header-text-container").each(
		function(){
			var headerWidth = jQuery("span.header-text",this).width();
			var mainWidth = jQuery(".container").width();
			var sidebarWidth = Math.floor((mainWidth - headerWidth )/2) - 24;
			
			if(jQuery("a.view-all",this).length > 0){
				sidebarWidth -= (jQuery("a.view-all",this).width() + 10) / 2;
			}

			//if((jQuery("span.left",this).width() * 2) + headerWidth > mainWidth){
				jQuery("span.left, span.right",this).stop().animate({width:sidebarWidth,opacity:1},{
					duration:400,
					easing:"easeOutSine"
					});	
			//}
		}
	);	
}

Open in new window



Hope this helps.

Regards,
Ronak
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
jonathanduane2010Author Commented:
Hi Edwin and Ronank

I have removed it from the header.php but still showing

here is new header
<!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' ); ?>" />
<link rel="shortcut icon" href="<?php echo ot_get_option('upload_favico', F_WAY.'/images/demo/favico.ico'); ?>" />

<?php
if(strlen(ot_get_option('google_font_js','')) > 0){
	echo ot_get_option('google_font_js');
}
?>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<?php
//var_dump( ot_get_option('site_font_size','13px'));
    /*
     *  Add this to support sites with sites with threaded comments enabled.
     */
    if ( is_singular() && get_option( 'thread_comments' ) )
        wp_enqueue_script( 'comment-reply' );
 
    wp_head();
 
    wp_get_archives('type=monthly&format=link');
?>

</head>
<body <?php body_class(); ?>>
<div id="toTop"></div>

<div class="header-under-line"></div>
<div id="body-container-small">

    <div id="header-top">
        <div class="container" style="padding-top:15px;">
            <div class="top-left">
            <?php echo ot_get_option('header_top_left_text','<div class="phone-icon-small"></div><p><strong>Call Us Free : </strong>+123 555 5 555 | </p><a href="mailto:info@johndoe.com"><p><div class="email-icon-small"></div> info@johndoe.com</p></a>'); ?>
            </div>
            <div class="top-right">
                <?php echo do_shortcode('[socialIcons float="right"]'); ?>
                
                <form id="nevon-search" action="<?php echo esc_url(home_url()); ?>">
                    <input type="search" name="s"  placeholder="Search">
                </form>
            </div>
        </div>
    </div>
	<?php ?>
    <div class="container">
    
        <div id="header">
            <div id="logo" class="clearFix">
    
                <?php if(ot_get_option('upload_logo') === '' && ot_get_option('logo_type', 'logo') === 'name'):?>
                    <h1 style="font-size:18px; text-shadow:none;"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
                <?php else: ?>
                    <a href="<?php echo get_option('home'); ?>" rel="null"><img class="noImgBorder" src="<?php echo ot_get_option('upload_logo',F_WAY.'/images/demo/logo.png'); ?>" /></a>
                <?php endif; ?>
            </div>
            <?php
			if(!getMainMenu('primary-menu')){
			  $backup = $wp_query;
			  $wp_query = NULL;
			  $wp_query = new WP_Query(array('post_type' => 'post'));
			  getMainMenu('primary-menu');
			  $wp_query = $backup;
			}
			  
			  ?>
        </div>
    </div>
</div>

Open in new window


Ronank where will i find that code in WP?
0
 
F PCommented:
http://php.net/sprintf

http://php.net/manual/en/function.preg-replace.php

Put it in a variable then sprintf() or preg_replace() ??
0
 
Edwin HofferTechnical ExpertCommented:
Hello jonathanduane,

Page title is removed from your page, you can see that. now currently its showing the page url.

Best Regards
0
 
jonathanduane2010Author Commented:
sorry i was supposed to say heading,

this one hereheading
0
 
Edwin HofferTechnical ExpertCommented:
And what is the link of the page where I can find "About Us" heading??
0
 
F PCommented:
Why couldn't you just add CSS for header-text to display none?

... at the bottom of your CSS file put:
header-text 
{
    display: none;
}

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.