• Resolved speakersblown

    (@speakersblown)


    Hi, I am using the Arras Theme on wordpress.

    A few weeks ago, i posted in the arras theme forums that i needed help with a minor issue. When I clicked on any Category tabs in my Menu, the words “Category Archive:___” would show up in the browser tab. “__” Being the category name. I wanted it to just say “___” Unfortunately noone was able to help me, so after searching for a long time, i came across someone who had a similar problem to me, and I copied and pasted that persons code they used into the header.php of my site.

    And it worked! Which was great…until I looked at my site in Internet Explorer! It looks horrible. https://www.speakersblown.com

    However it looks brilliant in google chrome and firefox.

    This is the code i pasted instead of the title arras had provided me

    <title><?php wp_title(”); if (function_exists(‘is_tag’) and is_tag()) { ?>Tag Archive for <?php echo $tag; } if (is_archive()) { ?> <?php } elseif (is_search()) { ?> Search for <?php echo wp_specialchars($s,1); } if ( !(is_404()) && (is_search()) or (is_single()) or (is_page()) or (function_exists(‘is_tag’) and is_tag()) or (is_archive()) ) { ?> | <?php } ?> <?php bloginfo(‘name’); ?></title>

    I should mention I know hardly anything about codes or anything, which is why I was so shocked that through trial and error my problem had been solved. But not another one has come up.

    PLEASE any help would be SO greatly appreciated!!! Im SO desperate to get this problem fixed ??

Viewing 15 replies - 1 through 15 (of 24 total)
  • Open your header.php and check <title></title>. You have the title tags in two places. One is where it should be and the second one was added all the way up and that’s above all of your codes in header.php.

    What you need to do is to locate the very first <title></title> copy and delete. Go down few lines and paste that same title under the appropriate place where the title should be.

    Then try it again. This is step one, if doesn’t work come back and we’ll troubleshoot once this is cleared out ??

    Thread Starter speakersblown

    (@speakersblown)

    First of all, THANKYOU for replying. You’re the first person to try to help me out and i really appreciate it.

    As I said, I’m a complete dunce when it comes to codes.

    so the first title tags is the codes i sent you before,but i cant seem to find another title tag.

    This is my entire header.php –

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <?php if ( is_search() || is_author() ) : ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php endif ?>
    
    <?php if ( ($feed = arras_get_option('feed_url') ) == '' ) : ?>
    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url') ?>" title="<?php printf( __( '%s latest posts', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
    <?php else : ?>
    <link rel="alternate" type="application/rss+xml" href="<?php echo $feed ?>" title="<?php printf( __( '%s latest posts', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
    <?php endif; ?>
    
    <?php if ( ($comments_feed = arras_get_option('comments_feed_url') ) == '' ) : ?>
    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
    <?php else : ?>
    <link rel="alternate" type="application/rss+xml" href="<?php echo $comments_feed ?>" title="<?php printf( __( '%s latest comments', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
    <?php endif; ?>
    
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php if ( !file_exists(ABSPATH . 'favicon.ico') ) : ?>
    <link rel="shortcut icon" href="<?php echo get_template_directory_uri() ?>/images/favicon.ico" />
    <?php else: ?>
    <link rel="shortcut icon" href="<?php echo get_bloginfo('url') ?>/favicon.ico" />
    <?php endif; ?>
    
    <?php
    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery-ui-tabs', null, array('jquery-ui-core', 'jquery'), null, false); 
    
    if ( is_home() || is_front_page() ) {
    	wp_enqueue_script('jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle.min.js', 'jquery', null, true);
    }
    
    if ( !function_exists('pixopoint_menu') ) {
    	wp_enqueue_script('hoverintent', get_template_directory_uri() . '/js/superfish/hoverIntent.js', 'jquery', null, false);
    	wp_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish/superfish.js', 'jquery', null, false);
    }
    
    if ( is_singular() ) {
    	wp_enqueue_script('comment-reply');
    	wp_enqueue_script('jquery-validate', get_template_directory_uri() . '/js/jquery.validate.min.js', 'jquery', null, false);
    }
    
    ?>
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php arras_body_class() ?>>
    <script type="text/javascript">
    //<![CDATA[
    (function(){
    var c = document.body.className;
    c = c.replace(/no-js/, 'js');
    document.body.className = c;
    })();
    //]]>
    </script>
    <?php arras_body() ?>
    
    <div id="top-menu" class="clearfix">
    <?php arras_above_top_menu() ?>
    	<?php
    	if ( function_exists('wp_nav_menu') ) {
    		wp_nav_menu( array(
    			'sort_column' => 'menu_order',
    			'menu_class' => 'sf-menu menu clearfix',
    			'theme_location' => 'top-menu',
    			'container_id' => 'top-menu-content'
    		) );
    	}
    	?>
    <?php arras_below_top_menu() ?>
    </div><!-- #top-menu -->
    
    <div id="header">
    	<div id="branding" class="clearfix">
    	<div class="logo">
    		<?php if ( is_home() || is_front_page() ) : ?>
    		<h1 class="blog-name"><a>"><?php bloginfo('name'); ?></a></h1>
    		<h2 class="blog-description"><?php bloginfo('description'); ?></h2>
    		<?php else: ?> <span class="blog-name"><a>"><?php bloginfo('name'); ?></a></span>
    
    				<?php endif ?>
    	</div>
    	<div id="searchbar"><?php get_search_form() ?></div>
    	</div><!-- #branding -->
    </div><!-- #header -->
    
    <?php arras_above_nav() ?>
    <div id="nav">
    	<div id="nav-content" class="clearfix">
    	<?php
    	if ( function_exists('pixopoint_menu') ) {
    		pixopoint_menu();
    	} elseif ( function_exists('wp_nav_menu') ) {
    		wp_nav_menu( array( 'sort_column' => 'menu_order', 'menu_class' => 'sf-menu menu clearfix', 'theme_location' => 'main-menu', 'fallback_cb' => 'arras_nav_fallback_cb' ) );
    	} else { ?>
    		<ul class="sf-menu menu clearfix">
    
    <li><a>"><?php _e( arras_get_option('topnav_home') ); ?></a></li>
    			<?php
    			if (arras_get_option('topnav_display') == 'pages') {
    				wp_list_pages('sort_column=menu_order&title_li=');
    			} else if (arras_get_option('topnav_display') == 'linkcat') {
    				wp_list_bookmarks('category='.arras_get_option('topnav_linkcat').'&hierarchical=0&show_private=1&hide_invisible=0&title_li=&categorize=0&orderby=id');
    			} else {
    				wp_list_categories('hierarchical=1&orderby=id&hide_empty=1&title_li=');
    			}
    			?>
    
    	<?php } ?>
    	<?php arras_beside_nav() ?>
    	</div><!-- #nav-content -->
    </div><!-- #nav -->
    <?php arras_below_nav() ?>
    
    <div id="wrapper">
    
    	<?php arras_above_main() ?>
    
    	<div id="main" class="clearfix">
        <div id="container" class="clearfix">

    No big deal, we’re here to help as much as we know and can ??

    Try this:
    https://wordpress.pastebin.com/RCF3Lbvj

    Both titles are marked.

    and/or

    <title><?php arras_document_title() ?></title>
    Thread Starter speakersblown

    (@speakersblown)

    I pasted that code at the top of the header? is that correct?

    now instead of saying just “Interviews” It says “Speakers Blown etc” on every page.

    When i add the arras document title bit, it changes it back to “Category Archives” so i didnt put that in.

    However, my site still doesnt sit right in internet explorer? Is that to do with the header or another? It looks fine in Firefox and Google Chrome but IE is really messing it up?

    See the title one in the code you just pasted? Move that to title two. What’s right now in title two needs to be deleted completely. We can have only one single title ??

    Thread Starter speakersblown

    (@speakersblown)

    okay i will try that ??

    do you have msn by any chance? It’ll be alot easier to communicate?

    Thread Starter speakersblown

    (@speakersblown)


    <div id=”header”>
    <div id=”branding” class=”clearfix”>
    <div class=”logo”>
    <?php if ( is_home() || is_front_page() ) : ?>
    <h1 class=”blog-name”>“><?php bloginfo(‘name’); ?></h1>
    <h2 class=”blog-description”><?php bloginfo(‘description’); ?></h2>
    <?php else: ?> <span class=”blog-name”>“><?php bloginfo(‘name’); ?></span>’

    does this part of the code have the second title?

    go to https://wordpress.pastebin.com and paste your entire header.php code there for me please and I will eliminate what’s not needed. Whatever you deleted now, it took down the entire site, please put it back.

    No msn sorry, but I am here till we resolve this ??

    Thread Starter speakersblown

    (@speakersblown)

    I will paste my header for you straight away!

    Obviously what i thought i was supposed to do was wrong :/

    thank god it came back! Although on every page aside from the home page, the description disappears from under the “Speakers Blown”

    ill paste my header.

    Thread Starter speakersblown

    (@speakersblown)

    https://wordpress.pastebin.com/rDVwTNuL

    I would be very frustrated with me if I was you, so Thanks for not losing patience

    Thread Starter speakersblown

    (@speakersblown)

    ps why isit that the site shows fine on firefox etc but not on internet explorer? is that something to do with home.php?

    Try this please: https://wordpress.pastebin.com/LNdRgRVa Open header.php and replace all with the above.

    It had some duplicated codes, IE will always report/show error, while FF, Safari and/or Chrome will not. Let’s go from here.

    Thread Starter speakersblown

    (@speakersblown)

    I’ve replaced all with what you gave me and it’s still the same.

    Also, the line ‘Bringing You The Latest News etc’ underneath the logo seems to disappear on all the other pages?

    Thread Starter speakersblown

    (@speakersblown)

    Do you think it would be a good idea to remove the theme, and reinstall it? I know this would reset any changes we had made on the site, but the main change we would need to make would be for the browser tabs. Its just an idea but I wanted to ask your opinion?:)

    I’m still seeing the same issue where we have two <title> instead of the one. Yes I think that it would be nice idea to reinstall the theme to rule out the issues with the theme itself.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘DESPERATE PLEASE! – new to wordpress :'(’ is closed to new replies.