Search Results for 'header'

Results from the Forum
davidspelvin
Participant
#0

Using header styles with dark background, my uploaded logo always has a white border around it. Also, when I use a png logo with transparent background, the whole logo just shows white. How can I fix this? thanks

defenseupdate
Participant
#0

Can I add the sticky logo to Header Style 2 (logo appears on menu after scroll down)

mboydnv
tagDiv Member

Hi Again,

After a few more hours of research, I believe this is a wordpress issue that has haunted webmasters for quite some time.

you can append any page number to the URL and, if the page doesn’t actually exist, WordPress will return a valid “200 OK” response and deliver the highest numbered existing page to the user. And not just for paged content — WordPress exhibits this behavior for any permalink on your site. This of course is not good from an SEO perspective, where an infinite number of URLs all pointing to the same page containing the exact same title, description, and content could potentially devastate your rankings.

Try it yourself! Add a page number to the end of any WordPress-powered URL and witness the insanity..

The worst part is that WordPress does this for not only multipaged posts and comments, but for any post or page. Try it yourself on any WordPress site on the Web — just append some number to the end of any URL and watch WordPress work its magic.

I will try this fix later, was curious to know anybody’s thoughts on this..

FIX: https://perishablepress.com/wordpress-infinite-duplicate-content/

<?php // malicious post page ordinal fix by Jeff Morris
// [post URL for reference]

global $posts, $numpages;

$request_uri = $_SERVER['REQUEST_URI'];

$result = preg_match('%\/(\d)+(\/)?$%', $request_uri, $matches);

$ordinal = $result ? intval($matches[1]) : FALSE;

if(is_numeric($ordinal)) {

// a numbered page was requested: validate it
// look-ahead: initialises the global $numpages

setup_postdata($posts[0]); // yes, hack

$redirect_to = ($ordinal < 2) ? '/': (($ordinal > $numpages) ? "/$numpages/" : FALSE);

if(is_string($redirect_to)) {

// we got us a phantom
$redirect_url = get_option('home') . preg_replace('%'.$matches[0].'%', $redirect_to, $request_uri);

// if page = 0 or 1, redirect permanently
if($ordinal < 2) {
header($_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
} else {
header($_SERVER['SERVER_PROTOCOL'] . ' 302 Found');
}

header("Location: $redirect_url");
exit();

}
}
?>

To implement this technique, just place it into your active theme’s functions.php file. Consider this a “beta” fix and test thoroughly. I have tested this successfully on WordPress 2.3 and 2.9, so it will probably work fine on just about any version of WordPress in use today.

This solution “fixes” the infinite duplicate content issue on the server-side of the equation. It eliminates the extraneous URLs by redirecting them to their canonical counterparts. Search engines will always find the canonical versions of your pages thus eliminating any duplicate content.

Conversely, using the canonical tag is more of a “cosmetic suggestion” that fails to resolve the issue in a reliable way. As Matt Cutts states several times in his presentation on canonical links, it’s always better for site admins to resolve any potential duplication issues on their site at the upstream end. Similar ideas are expressed in this video on the canonical tag.

mboydnv
tagDiv Member

I’m starting to believe the Yoast Seo Plugin is pure evil.

I don’t like the fact of it putting a rel canonical tag in the header for every post/page. Suppose your site is a small site of 60 posts and nothing is duplicated, so why have the rel canonical over used through the site? Read a great article on that. Could be irritating google with rel canonical overuse.

Also I’m not so trusting of the “wal-mart” of plugins. The bigger these companies/gurus get the more we are supposed to trust them? My income has sank since using yoast. I have it configured correctly too. Seen all the youtube videos and tutorials.

Looking into Greg’s High Performance as an alternate. Anyone else have suggestions? And btw, I’m numb to all the yoast subgurus that say they have it installed and no problems… not interested in those comments.

Patrick
tagDiv Member

Hi,
The malware is in the header tab field.
I’ve my banner, and I had blank lines then the script of the malware, I removed it but it seems that everytime I did an update(6.6.2 yesterday) with the envato toolkit, it came back. Could you check ?
Thanks

schindyguy
Participant
#0

I cannot use the themes “header” ad slot because I have a custom post type for sponsored articles I do not want adsense appearing on (and additionally slowing down the load time of the sponsored posts). My dev created a /s/ slug to represent the sponsored post type and we tried adding a conditional to the header ad slot to not load the adsense responsive code when /s/ is present in the url but while we were successful in hiding the ad (a big no no for google) the ad scripts still appear and slow down the load time so I’ve had to abandon using the header ad slot all together. If you have any other suggestions to prevent adsense header ad slot from loading ads/adsense scripts on a certain “sponsored” post type or urls that have /s/ in them please let me know – otherwise I have been forced to use the workaround:

I created a custom ad slot 1 with google responsive code on the homepage using VC which works, but I don’t have the same ability to do that on category pages. The theme panel > layout settings > categories section seems restrictive in how it can be customized. How would I add a “custom ad slot 1” ad to the top of every category page? Similarly, how can I define a post template to use “custom ad slot 1” as a header (almost all of my posts are set to default or from panel post templates)?

Thanks in advance for reading all that! Looking forward to your reply

schindyguy
Participant
#0

I know there is a custom ad spot named “smart list X” but it inserts the ad near the header/title which I already have one set with a responsive adsense code.

I want to add content recommendation widgets (ie taboola) below my smart list posts. Anyway to do that rather than modify the theme files? Perhaps a way with custom ad slot 1-5 plus as a widget with VC maybe?

felizubi
Participant
#0

As in this image, how to add and image/little banner (220x80px) at one side of the logo, on header style 7?

Fz

Solstyce
tagDiv Member

Thanks, Chris.

I’ve been using responsive ads on my site so far, with pretty limited results. It seems there aren’t a lot of responsive ads in Google’s inventory.

I’d like to use leaderboards and MRECs since those are two of the most common ad sizes. If I put my leaderboard adsense code in the header ad block, it displays a banner ad. If I put that same code in my page body, it displays an MREC. This is a full width row in a full screen laptop browser, so I’d expect it to be able to fit.

Does Newspaper handle custom ad code differently from ad code in the header, footer, etc.?

I may be asking the wrong question. I’m trying to ad a leaderboard ad below a BigGrid 3 on my home page. I’m trying to use custom ad 1 and an ad box. What’s the recommended method?

Thanks

gmaio
Participant
#0

Hi,
due to customization needs I’ve sligtly modified some theme files on the base of your indications. Therefore I created a Newsmag-child theme and put in the child theme the following files:
Newsmag/style.css
Newsmag/single.php
Newsmag/parts/header.php
and all works fine with these files after the theme update.

But I’ve also modified two other files, namely:
Newsmag/includes/td_settings.php
Newsmag/includes/wp_booster/wp-admin/content-metaboxes/ td_set_post_settings.php

which, even if existing in the foreseen path of child theme, their code patches seem not to work. Therefore, I’m forced to apply the code patches to this couple of files of the parent Newsmag theme EVERYTIME I update the Newsmag theme.
Is there a way to get these two files included in my child theme as well so that I can update the theme avoiding to redo all file modifications by hand?
Thanks a lot for any appreciated information.

Giuseppe

JCAires
Participant
#0

I am sorry, but this is not clear. Why the H1 tag for the home page is never found by the search engines, crawlers or SEO tools? How can this be corrected? I do not want to break the site appearance/layout including a Text Field in the page to set it as H1. This is what I got from Bing:

SEO Suggestion The <h1> tag is missing.
Severity High
Error Count 1
Non-Compliant Pages 1
SEO Explanation The <h1> tag is an indicator to Bingbot and web visitors of what the body copy’s primary theme or topic is. The <h1> tag reinforces the core keyword(s) found in the title, description, and the body copy. We recommend that the <h1> tag includes keywords that reflect the contents of the page and that it is not longer than approximately 150 characters in length.
Recommended Action Add a header to the page by using a <h1> tag and place it within the <body> of the page source. Example: <h1>A precise and descriptive headline for the page</h1>.

Bogdan B.
tagDiv Staff

Hello and thank you for purchasing our theme and thank you for your kind words.

1- Please provide more details to how you want the top ad to be positioned. I assume you want it moved a bit to the right. You can use this css code for it:
.td-header-style-1 .td-header-sp-recs {
margin: 50px 0 9px 63px!important;
}

You can place the code in the theme panel->custom css box.

2- For the footer i see you have many widgets added in the footer 3 area: http://screencast.com/t/Qpg9Zx7pW
The first 2 footer styles from the theme panel come with predefined content that cannot be removed. You can use another footer style that has no demo content and then use the 3 footer widgets to add your own content. You can read more about footers in our documentation here: https://forum.tagdiv.com/footer-templates/

3- You can use this custom css code to adjust the width and height of the logo:

.td-header-style-1 .td-header-sp-logo {
width: 160px;
height: 120px;

The default header style will crop your logo for it to fit with the ad next to it. If you want the theme to display the logo exactly as the dimensions you upload, you will need to use a header style that supports ‘full logo’ : https://forum.tagdiv.com/header-styles/

4- You can add a hover effect with css as the theme has no option for it. Please use this code:
.footer-logo-wrap img:hover{
opacity:0.5;
}

Thank you!

Pradeep Augustine
tagDiv Member

You can try this tutorial: http://www.getcooltricks.com/wordpress/google-cse-integration-to-newspaper-wordpress-theme/

I had created a code to work in the header. Use that instead of the code. For better result use the code created in Google CSE. You may loose the Ajax search function.
Thanks.

Catalin
tagDiv Staff

Hello finanztip,

Unfortunately, we do not have a specific guide to “How to create custom template” because to achieve this are required more knowledge of hard-coding and also, custom work. I suggest you make use of a child theme if you want to have a custom template on your website because, on the next update, all the code will be overwritten. You should create a custom templates using API. More details about this way can find in our documentation, here: https://forum.tagdiv.com/the-theme-api/

In this section we will present the new theme API system which brings theme customization to a new level and allows users to modify or add new elements like single templates, smart lists, thumbs, modules, blocks, header styles, category templates, footer templates.

If you are not aware of steps which you should follow to achieve this, please consider hiring a freelancer/developer to do this thing for you, because we cannot provide custom work at the moment, sorry!

Hope this helps and let us know how it goes!

Thank you!

George
tagDiv Member

Catalin – I’ve commented out the header logo and menu code. But 404 page still displays a gradient line.

Please visit this page http://www.viralbae.com/hdkfahlkdhadfa

Kindly advice.

Bogdan B.
tagDiv Staff

Hello,
The website you suggested gets it’s color from an ad. That is not a background-color at all. You can use a different header style if you wish and place an ad below the menu like the one from http://www.leparisien.fr
Use this guide to see the different header styles you can use: https://forum.tagdiv.com/header-styles/
If this is not what you mean, please provide more details.
Thank you!

ofitropolis
Participant
#0

Hi,
How I can change the target link in main menu header to “_top”.
Thanks

Bogdan B.
tagDiv Staff

Hello,
Please try to disable all your plugins except visual composer, clear your cache and purge cdn files if you use it in order to rule out a plugin conflict. Also if you have any custom css modifications, make sure they do not affect the search widget and check to see if all tags are closed correctly. This problem can easily be fixed with css as it has an absolute positioning. you can add this code to re-position it if you want:
.header-search-wrap .td-drop-down-search{
left: 680px;
}

But finding the root of the problem is more important than coming up with a workaround.
Thank you!

clubfred
tagDiv Member

Hi. I have a follow up to this. I can see we can identify posts manually this way and hide the ads.

However, the ad code is still being run and served, it is just hidden by the CSS attribute. This seems like a very concerning situation with Google or other ad platforms. If they find they are serving ads and charging for impressions, but the ads are not displayed, we would definitely lose our account.

I am not sure CSS will work. We need a page or post template where the ad units are not inserted to begin with. Just like a “Simple page” that has the header and footer, but no ads inserted at all.

Or are there any other suggestions on how to do this correctly?

Thanks!

  • This reply was modified 10 years by clubfred.
simchris
tagDiv Member

Link to example page might be helpful 🙂

And of course if you manually edited the header template or any other template you would want to undo that.

Also try turning off *all* plugins except for Visual Composer to see if it goes away, then you know it’s a bad plugin.

grayloon
Participant
#0

viewing the source of my site, I have this in the head tag. it appears to be coming from one of the newspaper theme functions.

Why is this here?

How can I remove it?

body {
background-color:http://www.orientaltrading.com/web/browse/processProductsCatalog?sku=37%2F701&BP=PS454&ms=search&source=Google&cm_mmc=Google-_-GooglePLA-_-Holidays%2FEaster%2FEaster+Eggs%2FPlastic+Easter+Eggs-_-Golden+Easter+Eggs&cm_mmca1=OTC+PLAs&cm_mmca2=GooglePLAs&cm_mmca3=PS454&cm_mmca4=FS49&cm_mmca5=Shopping&cm_mmca6=Holidays&cm_mmca11=37%2F701&cm_mmca12=Golden+Easter+Eggs&gclid=CNGyzYDS7sUCFdIXHwodVbwAhg&categoryId=377320;

--

after further investigation it appears someone got in and added this to the body background field color
                    }
ghostmi
tagDiv Member

hello, it was the code of the header banner 728

<div class=”td-visible-desktop”>
</div>
<div class=”td-visible-tablet-portrait”>
</div>

something has changed about these codes?
Now I only put the code for untagged div

Catalin
tagDiv Staff

Hello George,

This problem may be caused due that Css execute the setting in cascading. If you have a more custom Css in your area, until the Css execute this code, it is possible to appear that flicker. You can try to place the code directly in your Style.css or if you want to disable this, you should remove the line in header_style used, like this: http://screencast.com/t/IK18hoIWk20e (it is an example for header style 1).

Hope this helps and let us know how it goes!

Thank you!

Bogdan B.
tagDiv Staff

Hello,
You can see the list of header styles: https://forum.tagdiv.com/header-styles/
You can use header style 9 of you wish and simply use a float left on the logo.
It is difficult to create a full logo template aligned left and the ad on the right. People use different logos and the ad will fall under the logo if the logo will be too big. We had to limit the logo in some way so the ad would keep it’s position.
Thank you for your understanding.

Bogdan B.
tagDiv Staff

Hello,
I assume you are using this method: https://developers.facebook.com/docs/plugins/like-button#configurator
When you generate the code for your button you get 2 pieces of code. http://screencast.com/t/a7ok1NO0 – you need to place the first one in the header.php file like so: http://screencast.com/t/ajTnUyYmqwyy and then you can use the second embed code on your page.
Thank you!

Viewing 25 results - 25,626 through 25,650 (of 29,850 total)