Search Results for 'header'

Results from the Forum
Marius
tagDiv Staff

Hello,
If the issue reappear, please contact us again.

Thanks!

Marius
tagDiv Staff

Hello,
You can edit the menu_header.php located in parets/header add at the end of the file a condition like

<?php if(is_category()) {
your code here
}
?>

Thanks

presto2
tagDiv Member

This issue doesn’t appear anymore (?!), weird…

Marius
tagDiv Staff

Hello,
Do you mean like this: http://screencast.com/t/x57ABHbq but is fake, that text appear only on checkout page.

Add the next code in the menu_header.php file located in \parts\header folder at the end of the file like here:

http://screencast.com/t/45MTi0Spzs

<?php
if (is_checkout()) {
	?>
		<div style="text-align:center; padding-top:30px;"><h3><span style="color:#cccccc;">SHOPPING CART&nbsp;&rsaquo;</span>&nbsp;CHECKOUT DETAILS&nbsp;<span style="color:#cccccc;">&nbsp;&rsaquo;&nbsp;ORDER COMPLETE</span></h3></div>
	<?php
}
?>

Thanks

Marius
tagDiv Staff

Hello,
You have to use that code directly in file.

Like here to replace the top header ad: http://screencast.com/t/rpVOThVTy

Hope this help!
Thanks for the message!

Happy New Year!!!

presto2
Participant
#0

Hi everybody,

Did you notice a weird change with the header while using Google Chrome very recently ? On my website, the header has suddenly stopped working like it used to (following the mouse scrolls on the screen), whereas I did not make any change !!

When using Internet Explorer and Firefox, everything seems ok.

Help please !

Thank you

simchris
tagDiv Member

Holiday PageSpeed Fun Report Update!
Just as a pagespeed comment, I was testing mod_pagespeed, vs your tagdiv cache experimental, and W3 with page cache on, and found that mod_pagespeed on server with memcache, optcache and eaccelerator, seem to be about the same effect. What this means for most WordPress folks is quite simple: use a hosting provider that supports mod_pagespeed (e.g., GoDaddy now supports it with htaccess local config options — NOT an advert for them, just anecdotal) may be better option than messing around with all the various plugins that try to replicate that server-side functionality.

To Radu and all … who are wondering about the “render blocking blah blah” errors, this was one of the suggested solutions for WP (note the issue is common to ALL WP themes frankly due to the way the header works for most themes based on “traditional” HTML practice, 2 years ago nobody really cared about this issue!):

(QUOTED from WordPress.org discussion, “wpgeekster”)
The reason you are getting render blocking message from google is because your javascript is being called in the header. In your wp_register_script() function and in your wp_enqueue_script() function you must include true for the $in_footer argument. If you include the $in_footer argument, you must also include all the other arguments.
See:
http://wp.tutsplus.com/articles/how-to-include-javascript-and-css-in-your-wordpress-themes-and-plugins/
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
http://codex.wordpress.org/Function_Reference/wp_register_script

(END QUOTE)

From same discussion:

(QUOTED from “manuelkuhs”)
Here’s what I figured out about how to eliminate all render-blocking JS & CSS:

Install W3 Total Cache

Go to Minify

Use the “help” wizard that you can see as a button near the top

Accept the suggestions without making changes. This will combine all your CSS files into 1, and all your JS files into 1, 2 or 3, depending where you load them (if you load all in the same area, e.g. in the <head>, you’ll only get 1 combined file).

Set all JS to “Non-blocking using Async”.

Now test your site. If everything works, the only blocking CSS/JS file left should be your combined CSS file, and nothing else.

Most likely some JS functions won’t work properly anymore. If this is the case, it gets a bit more complicated.

In this case, try the following:
Remove all the JS files in the Minify settings of W3

Open the source of your functioning page where no JS files are combined and manually add to W3 Minify ONLY the JS files found in the header (since these are the ones “above the fold”) and IN THE ORDER that they exist in your source file. Try this. If it works, try moving them all into the <body> or just before the </body> using the Minify JS settings.

In my case, I had a strange issue whereby combining jquery.js with the other JS files broke many js functions that depend on jquery even though they loaded after. To get around this I made jquery.js load on its own after <body>, and made all the others load combined just before </body>, with everything set to load using async.

Using this method, the only “above the fold” problem I have is the combined CSS sheet.

If your combined CSS is small, you can try inlining the entire thing.

If not, the only way around this that I currently know is to manually inline only the relevant parts of this combined CSS, and then to load the combined CSS in the footer using JS.
(END QUOTE)

  • This reply was modified 12 years by simchris.
Marius
tagDiv Staff

Hello,

@Arved007
can you show us your site url. Thanks.

We have clients that use asynchronus in top header.

Marius
tagDiv Staff

Hello,

Can you try with this css, add it in style.css

@media (min-width: 1200px) {
	.td-logo-rec-wrap .td_rec {
		padding-top: 22px;
	}
}
.td-logo-rec-wrap .td_rec {
	padding-top: 37px !important;
}
@media (min-width: 768px) and (max-width: 1018px) {
	.td-logo-rec-wrap .td_rec {
			padding-top: 27px;
	}
}
@media (max-width: 767px) {
	.td-logo-rec-wrap .td_rec {
		padding-top: 5px;
	}
	.mobile-logo-wrap img {
		width: 151px !important;
	}
}
Marius
tagDiv Staff

Hello,
That ad is in sidebar, go to Apperance -> Widgets and remove [tagDiv] Ad box widget from Newspaper default sidebar.

What you see there in Theme customizer is the ad from top header.

Thanks for the message!

SaijoGeorge
tagDiv Member

was this fixed in the dec 24th update

Marius
tagDiv Staff

Hello,
Please try in incognito mode in browser, or clear the browser cache. Also if you use some cache plugin please delete the cache.

Thanks

simchris
tagDiv Member

tarquisti
be sure to put your Google Author URL into the “user account” box for the author being specified on the post(s) under the wp > users section (not part of theme).

You might also try using a plugin like Yoast SEO which puts all the fancy meta data in the header for social media. I used to run an in-house plugin, but now we just use Yoast as those folks have it all in there for the social media tools, XML sitemap, etc.

TIP: go to a post page on your site, and do “view source” in web browser to see the code for your post, and at very bottom there will be a line for Google Authorship like so (this has my author account at G+ obviously)

<a href="https://plus.google.com/+ChristopherSimmons/posts?rel=author"></a>

If you don’t see that in your source code for your author account at G+, then make sure you have your author name in your user setup.

simchris
tagDiv Member

HI
Top Header Menu – is the black bar

Header Menu (main) – is main under logo menu

Footer Menu – is the one at bottom of page

Be sure to go to

wp admin > appearance > menus > manage locations

and check all are set right.

and,
wp > admin > appearance > menus > edit menus
[select] a menu to edit, the one you’re trying to put on top of pages in black bar, and check at bottom that the checkbox is checked for [x] top header menu, click [SAVE]

Also if using special plugins, turn them off to see if a conflict (any plugin not included with theme!)

If you’re using Firefox or pesky Chrome, you may need to go into your Chrome browser settings and “clear history” to get rid of their stupid caching (I usually test in IE, then check in Chrome).

You can see our menus running on the 10 year old site we’re (still) migrating to Newspaper, here (not self promotional, so I’m going to unlink this as code):
http://publishersnewswire.com/

The menus should work, as they hook into WordPress’ default menu system with CSS and are not custom menu plugins. If they work in the default WP theme (e.g., twenty twelve or thirteen, or even fourteen), they should work here. 🙂

simchris
tagDiv Member

mehedi,
see how Radu got the demo to the pagespeed
https://forum.tagdiv.com/how-to-make-the-site-faster/

“speed” is a process which requires many tools to accomplish, no one theme “magically” has high pagespeed. YOU need to research and implement many things separate from the theme to achieve a high pagespeed ranking, including NOT using various things like adsense, or plugins which “dial out” to get resources. But, if you follow the link above, Radu explains how they optimized the demo site.

You should also read through this thread, as you may need to update your htacess file for expiration headers, optimize your images, etc.

cooldude
tagDiv Member

Thanks, that solves my problem. I don’t know that formatting also works that way. Thanks a lot again. a great product you have and even great support.

harikumarhere
Participant
#0

Im having trouble after updating to 2.1.3
please take a look at the screen shot
http://www.screencast.com/t/u3bZ6QataXe

thanks in advance

Marius
tagDiv Staff

Hello,
You have this in Theme Customizer http://screencast.com/t/BLsT2Uwox4mk under the Header section http://screencast.com/t/XtxivxNg5sDk

If you want to add custom CSS, please use the Child theme.

Thanks

mmtt
tagDiv Member

Thanks!

I just resolved it. The problem was from my server. The www root was not cnamed to the domain name. I just did it and everything updated.

Could you you offer some advise about putting an ad code between the header menu and the content area. When I try it, the site goes blank without any specific error message.

Thanks again!

simchris
tagDiv Member

tarquisti:

see – ask your hosting provider to set caching for your site: https://developers.google.com/speed/docs/insights/LeverageBrowserCaching

try using my expiration header settings in your .htaccess file
https://forum.tagdiv.com/topic/what-is-your-googlespeed-value/

try using an image optimization plugin for wordpress to make images smaller in size (compression) and then use the thumbnail redo plugin recommended by Radu

see: https://forum.tagdiv.com/how-to-make-the-site-faster/

Radu
tagDiv Staff

Hello,

this is a strange error. get_header() is an internal function from wordpress.
I can recomend you:
1. to disable permalinks and see if the site works without them and if everything is ok renable them.
2. disable all plugins
3. try to increase the allowed memory size in php.ini
4. try the site with the default wordpress theme
5. a full wordpress reinstall

I’m sorry for the problem but it looks like some kind of hosting problem / incompatibility. This kind of problems are very hard to fix without direct server access. I can assure you we did not encounter this problem before.

filmkommentaren
Participant
500 error - topic
#0

Hi,

I have problem with 500 error on sporadic posts being produced.

I have asked my hosting-provider to track the error in the logs.

We issued error_loging in php.ini and the following error are found:

[19-Dec-2013 04:53:06] PHP Fatal error: Call to undefined function get_header() in /home/3/f/filmkommentaren/www/wp-content/themes/Newspaper/index.php on line 6

Line 6 in index.php are

get_header();

The page in question now are here: http://www.filmkommentaren.no/2013/12/luke-18-grown-ups-2-vinn-svaere-filmpakker-2/

brasilnaitalia
tagDiv Member

Hi Marius,
Thank you very much!
The symbols look much better now. 🙂
And the style code works fine too.
Kind regards,
Barbara

Marius
tagDiv Staff

Hello,
1. Go to Theme customizer -> Header and try with -10 like here http://screencast.com/t/7VIpUoacMse

2. Add this in style.css

.mobile-logo-wrap img {
    top: 1px !important;
    width: 132px !important;
}

3. The big slider work like on desktop you have 1 slide(4 post) on mobile will be 1 slide to(but only with 1 post) What you can do is to increase the post number on the big slide 4post – 1 slide, 8 post – 2 slides, 12 posts – 3 slides.

Thanks for your message

Marius
tagDiv Staff

Hello,
The code is not correct formatted.
Try this:

<?php
    if(is_single() || is_page()) {
    $twitter_url = get_permalink();
    $twitter_title = get_the_title();
    $twitter_desc = get_the_excerpt();
    $twitter_thumbs = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), full );
    $twitter_thumb = $twitter_thumbs[0];
    $twitter_name = str_replace('@','', get_the_author_meta('twitter'));
    ?>
    <meta name="twitter:card" value="photo" />
    <meta name="twitter:url" value="<?php echo $twitter_url; ?>" />
    <meta name="twitter:creator" content="@username"/>
    <meta name="twitter:title" value="<?php echo $twitter_title; ?>" />
    <meta name="twitter:description" value="<?php echo $twitter_desc; ?>" />
    <meta name="twitter:image" value="<?php echo $twitter_thumb; ?>" />
    <meta name="twitter:site" value="@username" />
    <?php
    if($twitter_name) {
        ?>
        <meta name="twitter:creator" value="@<?php echo $twitter_name; ?>" />
    <?php
    }
    }
    ?>

Use like here: http://screencast.com/t/fJzoOOi7

Viewing 25 results - 29,676 through 29,700 (of 29,850 total)