Search Results for 'header'

Results from the Forum
Alin [tagDiv]
tagDiv Staff

Hi,

Please try to edit header style that you use and add this condition to the header ad: http://screencast.com/t/eABgrML2

<?php
   if(!is_front_page()) {
     locate_template('parts/header/ads.php', true);
}?>

Result: http://screencast.com/t/kB9mDqiIhttp://screencast.com/t/HKBoPUxgBI

Thanks!

2k4
tagDiv Member

Thanks for the help Aline. How can I make the main menu/nav bar for header style 7 to extend across the full length of the screen (for desktop of course).

Atantou
tagDiv Member

Thank you for your answer

1. I have already enable greek support from here http://screencast.com/t/YQNZEjsjZO
and the problem still exists http://screencast.com/t/XF9tDggA

2. I am talking about this http://screencast.com/t/aYwDRdVoJt

3. 3rd header style is what i want on desktop computer but on a retina tablet the logo is not appear correctly(it is bigger and lose sharpnes). check it plz

webyusuf
Participant
psd logo - topic
#0

My Item Purchase Code: 11c8f1b9-5315-4dad-91a5-1a6a1233defe

Hello,

http://demo.tagdiv.com/newspaper/wp-content/uploads/2014/07/header-logo.png

Do not PSDs of this file?

Lucian
tagDiv Staff

Hi,

1. Please make sure that you also enable greek support from here: http://screencast.com/t/YQNZEjsjZO then empty caches/purge files if you sue cdn host and try again.
Please let me know if you refer to this photo as I haven’t noticed anything wrong with it: http://screencast.com/t/wPVEqied

2. If your refer to the space under the image, you can sue this css to remove it or reduce it: http://screencast.com/t/N1sKfjWzqEZ

.td-grid-wrap {
padding: 10px 13px 0px 13px !important;
}

If this is not what you’ve meant please let me know and provide more details.

3. You can use the 3rd header style: http://screencast.com/t/mI8UiD6PBA ..and have it like this: http://screencast.com/t/DerGQXpn0

4. We have this on our todo list and we are working on it unfortunately we still have incompatibility issues regarding VC style.
You can try the solution from in this topic: https://forum.tagdiv.com/topic/buttons/#post-21804 and import the VC css: https://forum.tagdiv.com/topic/buttons/#post-21825
We plan to restyle all VC elements in theme version 5. Sorry about this and for the inconvenience.

Thanks

phabio76
tagDiv Member

Hi,
for “website flicks until css is loaded”, I mean website load faster but for a little fraction of time it appear without css and then it’s rendered properly.
Can I split main css theme in 2 parts,
putting a small one in the header with most important formatting rules and the bigger one in the bottom of the page?
Work in progress site here: http://www.wemedia.it

Alin [tagDiv]
tagDiv Staff

Hi,

Unfortunately header style 3 (also 6) use the same logo also on mobile view. It was initially created like this but we have this on our list and we will think to another implementation. Sorry for inconvenience!

Thanks!

phabio76
Participant
#0

Hi,
Google PageSpeed suggests to move css at the bottom of the page avoiding the page render blocking.
I’ve successfully used your page booster plugin for all js and css, but …content/themes/Newsmag/style.css?ver=1.6
If I add huge 400kb theme style.css to page booster plugin, website flicks until it is loaded at the bottom of the page. If I hold css theme in header, Google mark it as a red problem. How i can fix it?
Thanks

Lucian
tagDiv Staff

Hi,

You can use custom css to change it as the theme doesn’t have an option for it: http://screencast.com/t/aOZq7ztY
Adjust the values as you like.

.single_template_4 .meta-info .entry-category, .single_template_4 .meta-info , .single_template_4 .meta-info .entry-comments-views{
font-size: 18px;
}

.single_template_4 .meta-info ul.td-category a {
line-height: 18px;
display: inline-block;
padding: 5px 10px 5px 10px;
margin-bottom: 7px;
}

.single_template_4 header .meta-info {
line-height: 27px;
}

This will only apply to single template 4 style, to get the same style to the other post templates remove the .single_template_4 class.

Thanks

  • This reply was modified 11 years by Lucian.
DoItForState
Participant
#0

Hello! Great theme, love it so far! 🙂 I am running into an issue with the navigation menu I was hoping I could get some help on:

My website is http://www.doitforstate.com

I am trying to make the menu exactly as described in this guide: http://www.wpbeginner.com/wp-themes/how-to-show-different-menus-to-logged-in-users-in-wordpress/

I am trying to follow this article and make the user that is logged out of their account see “Sign In | Register” and users that are logged into the account show “My Account” on the main menu.

This works for me, users are seeing the correct menus when they are logged in and logged out as I would like.

One issue I ran into when doing this was the very top menu (red) displaying for a brief 2 seconds as they browse page to page. It shows a menu I do not have created. I would like, if possible, for the red banner to display (about 5px from the top), and make it seamless to navigate each page without seeing the display: none; code I have written. Here is my following code:

I tried two different things..

In header.php I created in the <head> tags:

<style>
#menu-logged-out-1, #menu-logged-in-1
{
display:none;
}
</style>

And per the article above I have tried in functions.php:

function my_wp_nav_menu_args( $args = ” ) {

if( is_user_logged_in() ) {
$args[‘menu’] = ‘logged-in’;
} else {
$args[‘menu’] = ‘logged-out’;
}
return $args;
}
add_filter( ‘wp_nav_menu_args’, ‘my_wp_nav_menu_args’ );

I have also tried putting in header.php below the first <header> tag:

<style>
#menu-logged-out-1, #menu-logged-in-1
{
display:none!important;
}
</style>

The issue seems like it goes away once the user is cached on the site. Is there anyway to make that top red tape display about 5px from the top, and remove the very top header completely? When I turn off “Main menu” and “Top Menu” bars in the Header section in theme options, it just causes problems displaying the header completely. Any help would be greatly appreciated, thank you so much and thank for a great theme 🙂

gusrblanco
Participant
#0

Hi there!

Good template! Congrats!

There is my issue:

SITE: http://marionegri.com.ar
TEMPLATE PART: Menu

ISSUE

The space between the “Inicio” and “Biografia” options on the header menu is different than the space between “Presidencia Bloque UCR” (that a has submnenu inside it)

Moment 1: Before you click
http://www.screencast.com/t/46CT6Wt4k9

But when you click on the option its goes fine, until the new page is displayed.

Moment 2: After you click
http://www.screencast.com/t/EXMzto2Onb

Thanks for the support!
Regards
Gustavo

gusrblanco
tagDiv Member

Hi there!

Hi there!

ISSUE

I’m having trouble with the logo for mobile in this site: http://marionegri.com.ar

But when I browse the page through my phone the template shows the header (not mobile) logo but in a tiny version

SITUATION

1 – I’ve defined this image (300 x 100) for LOGO AS DEFAULT: http://marionegri.com.ar/wp-content/uploads/2014/12/cabecera-mario-negri.fw_.png

2 – I’ve defined this image as the mobile logo: http://marionegri.com.ar/wp-content/uploads/2014/11/logomovil.jpg

3 – Menu is set to Style 3

Thanks for you patience

Regards
Gustavo

Sean
tagDiv Member

Hey,
In your ftp navigate to your Newsmag parent theme > Parts > Header
Download logo.php as a backup
Edit logo.php with a text editor.
You’ll see anchor tags in both the //Retina and //Not retina code.
Change href=”<?php echo esc_url(home_url( ‘/’ )); ?>”
to
href=”http://www.newaddress.co.uk&#8221;
Change “http://www.newaddress.co.uk&#8221; to the URL you wish to link to. Clear any cache plugins you may be using afterwards.

You’ll need to do the same thing with logo-mobile.php

  • This reply was modified 11 years by Sean.
  • This reply was modified 11 years by Sean.
simchris
tagDiv Member

You can set an expiration time in your Amazon CDN; I used to use that. It’s in their help docs, but I abandoned that about this time last year since I found in our case with our own dedicated server and running mod_pagspeed, etc., it didn’t appreciably help us.

There is a setting in the master account, where you can set the TTL (time to live) for the “bucket” — I was setting mine to one year. It’s bee nawhile, unfortunately.

This may help
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html#ExpirationAddingHeadersInS3

I think at the time they didn’t have a setting for that; you could set how long the files live before the “expire” them– which I set to one year. I don’t remember how I set the expirations “per file.”

#EDIT#
oh stupid me (looking at my windows desktop this morning) … there is no easy way to do that. I bought software to actually do that properly (FYI: we got a brand spanking new web server Jan 2015, and I spent month of January testing every possibly way to boost pagespeed score, with the Newspaper theme and also our bootstrap based static HTML stuff used for our main business site — this included testing Amazon CDN for assets).

Go out right now and buy a copy of “Cloudberry S3 Explorer” software — this allows you to manage your buckets, set expiration headers, etc. — it’s like a shell application for your S3 account. It’s freeware, but if you are going to actually use S3 it’s the only way to fly — seriously.

The $39 pro version is totally worth it. I highly recommend it. Saved me hours of hair pulling (not my hair, just random passerby…. 😉
http://www.cloudberrylab.com/free-amazon-s3-explorer-cloudfront-IAM.aspx

HOW TO
http://www.cloudberrylab.com/blog/how-to-set-custom-http-headers-for-amazon-s3-objects-with-cloudberry-explorer/

  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
linearwhiz
tagDiv Member

Thanks for chipping in Chris , I’ve “borrowed” your hta access code and it made a real difference.

There’s a small issue I am having with images though, I upload all my images to Amazon’s S3 and am using Amazon’s Cloudftont CDN as well , these images don’t have any expiry headers when I test , Do you think we could do anything about that ?

I could PM you more details if you’d be interested ..

Cheers,

Wissam

Gary73
Participant
#0

I’d like to change the size of the info that’s here:

http://screencast.com/t/6CiZdHPe

Size wise/padding wise I’d like it to match the view count/comments on that same line.

How do I do that?

simchris
tagDiv Member

Here’s mine, although this has some stuff for mod_pagespeed at top, and I also unset tag, and am trying to block pingbacks. 🙂



<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

AddType text/javascript .js
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff

# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 700000 seconds"
ExpiresByType text/javascript "access plus 700000 seconds"
ExpiresByType application/javascript "access plus 700000 seconds"
ExpiresByType application/x-javascript "access plus 700000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
ExpiresByType font/truetype "access plus 2500000 seconds"
ExpiresByType font/opentype "access plus 2500000 seconds"
ExpiresByType application/x-font-woff "access plus 2500000 seconds"
ExpiresByType image/svg+xml "access plus 2500000 seconds"
ExpiresByType application/vnd.ms-fontobject "access plus 2500000 seconds"
</IfModule>
# END Expire headers

# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</IfModule>
# END Cache-Control Headers

<IfModule mod_headers.c>
    Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>

  • This reply was modified 11 years by simchris.
simchris
tagDiv Member

Not a bug in theme, we embed videos from both YouTube and Vimeo all the time.

These embed via OEMBED into a post, which is a built in function of WordPress inside posts, and with a wrapper for featured video, so that it fills the space.

I’m not sure why the line 109 in your setup would be trying to load an external website URL via FOPEN (which should be done via CURL anyway) … loading the proper VIMEO URL should simply do that in the normal iframe.

If you look at the actual line 109, it’s simply to get headers:

    function is404($url) {
        $headers = get_headers($url);
        if (strpos($headers[0],'404') !== false) {
            return true;
        } else {
            return false;
        }
    }

Remember NOT to put https in front of the shortcode URLs (youtu.be), only the full youtube.com URLs.

With Vimeo, be sure the video allows it to be used on other sites, depending on country of origin and copyright elements.

Not sure that helped. Just noticed this and had a thought or two.

You should update to 1.6, as it’s much better than 1.4 (lots of improvements). I was pleasantly surprised.

Use my upgrade guide for ‘best way’ to ensure clean upgrade.

  • This reply was modified 11 years by simchris.
Radu
tagDiv Staff

@linearwhiz I’m sorry that i’ve lost your message and I’m replying so late but here is our .htaccess


<IfModule mod_deflate.c>
    <filesMatch "\.(js|css|html|php)$">
        SetOutputFilter DEFLATE
    </filesMatch>
</IfModule>
# BEGIN Expire headers
<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 5 seconds"
  ExpiresByType image/x-icon "access plus 904800 seconds"
  ExpiresByType image/jpeg "access plus 904800 seconds"
  ExpiresByType image/png "access plus 904800 seconds"
  ExpiresByType image/gif "access plus 904800 seconds"
  ExpiresByType application/x-shockwave-flash "access plus 904800 seconds"
  ExpiresByType text/css "access plus 904800 seconds"
  ExpiresByType text/javascript "access plus 904800 seconds"
  ExpiresByType application/javascript "access plus 904800 seconds"
  ExpiresByType application/x-javascript "access plus 904800 seconds"
  #ExpiresByType text/html "access plus 600 seconds"
  #ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
# END Expire headers

# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
  <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "public"
  </filesMatch>
  <filesMatch "\.(css)$">
    Header set Cache-Control "public"
  </filesMatch>
  <filesMatch "\.(js)$">
    Header set Cache-Control "private"
  </filesMatch>
  <filesMatch "\.(x?html?|php)$">
    Header set Cache-Control "private, must-revalidate"
  </filesMatch>
</ifModule>
# END Cache-Control Headers
unplug.tips
tagDiv Member

I have the same problem, also when I try and post a youtube video it returns the following errors when I try to publish the post

Warning: get_headers() [function.get-headers]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/unplugti/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_video_support.php on line 109

Warning: get_headers() [function.get-headers]: This function may only be used against URLs in /home/unplugti/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_video_support.php on line 109

Warning: Cannot modify header information – headers already sent by (output started at /home/unplugti/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_video_support.php:109) in /home/unplugti/public_html/wp-admin/post.php on line 233

Warning: Cannot modify header information – headers already sent by (output started at /home/unplugti/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_video_support.php:109) in /home/unplugti/public_html/wp-includes/pluggable.php on line 1178

Sean
tagDiv Member

I realised this doesn’t overwrite existing header information created by certain plugins such as Yoast SEO. Instead, place this at the top of the author.php file:

<?php
if (!have_posts()) {
global $wp_query;
$wp_query->set_404();
require_once( trailingslashit( get_template_directory() ). ‘404.php’ );
exit;
}
?>

Sean
tagDiv Member

Well, I’ve fixed this for now by throwing a 404 on the author.php if !have_posts, but this meant changing the author.php template. I don’t know if this is going to fix much. These pages may still be included within the sitemap. Hopefully I haven’t messed with any functionality of the author template. For anyone dealing with the same issue, in your parent theme > author.php add:
<?php
if (!have_posts()) {
header(“HTTP/1.0 404 Not Found – Archive Empty”);
require TEMPLATEPATH.’/404.php’;
exit;
}
get_header();
?>
To the very top of the file. Unfortunately these are still being indexed, so I’m expecting a few errors in Webmaster Tools.

  • This reply was modified 11 years by Sean.
Alin [tagDiv]
tagDiv Staff

Hi,

This is header ad border that’s why did not change the color. Please use this css for it: http://screencast.com/t/C7sBiB5PFt

.td-header-style-7 .td-ad-m{
border-bottom: 1px solid black;
}

Thanks!

2k4
Participant
#0

I noticed that the panel for categories have changed slightly with the latest Newsmag theme update. In the category panel, I had the ‘show featured slider’ turned off, but since that option is no longer in the panel, I disabled the ‘category top posts style’. However, the big grid still shows the category featured slider on mobile and tablet devices.

Furthermore, other changes like disabling the category header did not reflect on mobile. How do I fix this?

Alin [tagDiv]
tagDiv Staff

Hi,

I have checked your site, please add you ad code directly in Theme Panel > Ads > Header Ad: http://screencast.com/t/hvgal6UK You don’t have to use anything else because google ads are responsive and resize automatically when you refresh. Add the code like I said and see if it hides on mobiles if you enable that option.

Thanks!

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