Search Results for 'header'

Results from the Forum
paperweight
Participant
#0

I am seeing dozens of these errors every hour for past couple of weeks on my site since I migrated the theme to Newspaper. Any idea what’s happening? They all refer to “wp-content/themes/Newspaper/index.php on line 6\n”

[Mon Oct 08 06:29:37.478640 2018] [proxy_fcgi:error] [pid 1940:tid 140284755171072] [client 172.68.189.204:59652] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /var/www/vhosts/mywebsite.com/httpdocs/wp-content/themes/Newspaper/index.php:6\nStack trace:\n#0 {main}\n thrown in /var/www/vhosts/mywebsite.com/httpdocs/wp-content/themes/Newspaper/index.php on line 6\n', referer: https://www.mywebsite.com/wp-content/themes/Newspaper

ctoweett
tagDiv Member

Please try to use the code below and place it in Theme panel -> Custom CSS area.
@media (max-width: 767px){
.td-header-top-menu-full {
display: block;
}
.td-header-sp-top-menu {
display: block !important;
text-align:center
}
}

Thanks.

paperweight
Participant
#0

I am trying to figure out how to customize placing different ads on top of Category pages. For example, for one of my categories, I need to place a specific static banner ad at the top of the category page (in the header area).

In the “Ads > Header ad” I would really like to use PHP so I can easily include a PHP conditional code to display the special ad on that category, but that area does not allow PHP code… so is there any other way to edit and include a conditional for that category to display a banner ad?

Tengel
tagDiv Member

PS. I apologize, I just found how to change this under Header Style – Mobile Logo. Much thanks. Sorry for the inconvenience.

Tengel
Participant
#0

My logo shows on laptop and desktop devices in the header on the home page. But when I view it on a mobile device, it still shows the sample “Lifestyle Magazine” logo that came with the theme. How can I change that? Thanks so much.

June
tagDiv Member

Thanks.
But I use the code for phone or ipad,but it doesn’t work.
.td-post-template-default .td-post-header .entry-title {
font-size: 24px;
font-weight: 600;
}
Is my code correct?

mdbadiruddin
Participant
#0

Sir,
I Test My Site (https://www.solutioninhindi.com/) Speed Test With
https://developers.google.com/speed/pagespeed/insights/”
Then Show me lots of Optimization error. I Provide you Optimization Suggestions Link then you can easily understand

Optimization Suggestions

Remove render-blocking JavaScript:

https://www.solutioninhindi.com/…-includes/js/jquery/jquery.js?ver=1.12.4
https://www.solutioninhindi.com/…s/jquery/jquery-migrate.min.js?ver=1.4.1

Optimize CSS Delivery of the following:

https://www.solutioninhindi.com/…form-7/includes/css/styles.css?ver=5.0.4
https://www.solutioninhindi.com/…lugins/td-newsletter/style.css?ver=4.9.8
https://www.solutioninhindi.com/…css?ver=72ece2de773553959e5098a544851753
https://fonts.googleapis.com/…%2C500%2C500italic%2C700%2C900&ver=9.0.1
https://www.solutioninhindi.com/…ent/themes/Newspaper/style.css?ver=9.0.1
https://www.solutioninhindi.com/…css?ver=dc11e23cd0219f30e55307de07f135fc

Enable compression
Compressing resources with gzip or deflate can reduce the number of bytes sent over the network.
Enable compression for the following resources to reduce their transfer size by 1.4MiB (85% reduction).

Compressing https://www.solutioninhindi.com/…ent/themes/Newspaper/style.css?ver=9.0.1 could save 1,014.3KiB (89% reduction).
Compressing https://www.solutioninhindi.com/…wspaper/js/tagdiv_theme.min.js?ver=9.0.1 could save 155.7KiB (76% reduction).
Compressing https://www.solutioninhindi.com/…-includes/js/jquery/jquery.js?ver=1.12.4 could save 61.9KiB (65% reduction).
Compressing https://www.solutioninhindi.com/…css?ver=72ece2de773553959e5098a544851753 could save 59.1KiB (86% reduction).
Compressing https://www.solutioninhindi.com/…css?ver=dc11e23cd0219f30e55307de07f135fc could save 55.9KiB (87% reduction).
Compressing https://www.solutioninhindi.com/ could save 55.5KiB (79% reduction).
Compressing https://www.solutioninhindi.com/…-form-7/includes/js/scripts.js?ver=5.0.4 could save 10.4KiB (72% reduction).

Leverage browser caching
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.
Leverage browser caching for the following cacheable resources:

https://solutioninhindi.com/…ads/2018/09/Solutioninhindi-logo-140.png (expiration not specified)
https://solutioninhindi.com/…ads/2018/09/Solutioninhindi-logo-272.png (expiration not specified)
https://solutioninhindi.com/…ads/2018/09/Solutioninhindi-logo-280.png (expiration not specified)
https://solutioninhindi.com/…8/09/Solutioninhindi-logo-544-300×53.png (expiration not specified)
https://www.solutioninhindi.com/…Newspaper/images/no-thumb/td_218x150.png (expiration not specified)
https://www.solutioninhindi.com/…/Newspaper/images/sprite/elements@2x.png (expiration not specified)
https://www.solutioninhindi.com/…th-Se-Android-Mobile-Hack-Kaise-Kare.png (expiration not specified)
https://www.solutioninhindi.com/…ge-custom-url-set-kaise-kare-768×417.jpg (expiration not specified)
https://www.solutioninhindi.com/…-2Bvideo-2Bkaise-2Bdale-2Bin-2Bhindi.jpg (expiration not specified)
https://www.solutioninhindi.com/…8/09/airtel-free-caller-tune-768×400.jpg (expiration not specified)
https://www.solutioninhindi.com/…o-2Bkaise-2Btode-2Bunlock-2Bkare.png.jpg (expiration not specified)
https://www.solutioninhindi.com/…2Bka-2Bpattern-2Block-2Bkaise-2Btode.jpg (expiration not specified)
https://www.googletagmanager.com/gtag/js?id=UA-109288917-2 (15 minutes)
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (60 minutes)
https://www.google-analytics.com/analytics.js (2 hours)

Minify CSS
Compacting CSS code can save many bytes of data and speed up download and parse times.
Minify CSS for the following resources to reduce their size by 214.5KiB (18% reduction).

Minifying https://www.solutioninhindi.com/…ent/themes/Newspaper/style.css?ver=9.0.1 could save 201.1KiB (18% reduction).
Minifying https://www.solutioninhindi.com/…css?ver=dc11e23cd0219f30e55307de07f135fc could save 13.4KiB (22% reduction).

Minify HTML
Compacting HTML code, including any inline JavaScript and CSS contained in it, can save many bytes of data and speed up download and parse times.
Minify HTML for the following resources to reduce their size by 13.7KiB (20% reduction).

Minifying https://www.solutioninhindi.com/ could save 13.7KiB (20% reduction).

Optimize images
Properly formatting and compressing images can save many bytes of data.
Optimize the following images to reduce their size by 227.9KiB (94% reduction).
Compressing and resizing https://www.solutioninhindi.com/…o-2Bkaise-2Btode-2Bunlock-2Bkare.png.jpg could save 60.1KiB (95% reduction).
Compressing and resizing https://www.solutioninhindi.com/…ge-custom-url-set-kaise-kare-768×417.jpg could save 51.4KiB (95% reduction).
Compressing and resizing https://www.solutioninhindi.com/…-2Bvideo-2Bkaise-2Bdale-2Bin-2Bhindi.jpg could save 43.9KiB (94% reduction).
Compressing and resizing https://www.solutioninhindi.com/…8/09/airtel-free-caller-tune-768×400.jpg could save 42.7KiB (94% reduction).
Compressing and resizing https://www.solutioninhindi.com/…2Bka-2Bpattern-2Block-2Bkaise-2Btode.jpg could save 29.8KiB (93% reduction).

Optimizations Already Present

Avoid landing page redirects
Your page has no redirects. Learn more about avoiding landing page redirects.
Minify JavaScript
Your JavaScript content is minified. Learn more about minifying JavaScript.

DAF
tagDiv Member

Yes this file exist in main theme folder. Also there is a folder with the same name.

Code below in the file ; please copy the code and check line 61

<?php
/* —————————————————————————-
the page template
*/

td_global::$current_template = ‘woocommerce’;

get_header();

// test fork radu test 1
//set the template id, used to get the template specific settings
$template_id = ‘woo’;

$loop_sidebar_position = td_util::get_option(‘tds_’ . $template_id . ‘_sidebar_pos’); //sidebar right is default (empty)

//read the custom single post settings – this setting overids all of them
$td_page = get_post_meta($post->ID, ‘td_page’, true);
if (!empty($td_page[‘td_sidebar_position’])) {
$loop_sidebar_position = $td_page[‘td_sidebar_position’];
}

switch ($loop_sidebar_position) {
case ‘sidebar_left’:
echo td_page_generator::wrap_start();
?>
<div class=”span4 column_container” role=”complementary” itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WPSideBar”>
<?php get_sidebar(); ?>
</div>
<div class=”span8 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>

<?php
woocommerce_breadcrumb();
woocommerce_content();
?>

</div>
<?php
echo td_page_generator::wrap_end();
break;

case ‘no_sidebar’:
echo td_page_generator::wrap_start();
?>
<div class=”span12 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>

<?php
woocommerce_breadcrumb();
woocommerce_content();
?>

</div>
<?php
echo td_page_generator::wrap_end();
break;

default:
echo td_page_generator::wrap_start();
?>
<div class=”span8 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>
<?php
woocommerce_breadcrumb();
woocommerce_content();
?>

</div>
<div class=”span4 column_container” role=”complementary” itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WPSideBar”>
<?php get_sidebar(); ?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
}

get_footer();
?>

Calin
tagDiv Staff

Hi,

Hope this will help you.
replace the code whit this one:
.td-header-style-1 .td-header-sp-logo {

margin: 28px 0;
}
.td-header-sp-logo img {
width: 237px!Important;
max-height: 118px!Important;
margin: 0 ;
margin-top: 66px ;
margin-bottom: 66px ;

}
.td-header-sp-recs {
margin-left: 56px!important;
width: 728px!important;
height: 90px!important;
margin-top: 80px!important;
margin-bottom: 80px!important;

}

.td-banner-wrap-full {
height: 250px!important;

}

.td-header-sp-logo{
margin:0!important;
}

  • This reply was modified 7 years by Calin.
Calin
tagDiv Staff

Hi,

If I understand correctly, you mean to have a sticky menu, if is that you need to go in Newspaper> Theme panel> Header expand main menu and select how to look your sticky menu ( https://www.screencast.com/t/Ap79TiYM )

Thanks.

Calin
tagDiv Staff

Hi,

Unfortunately you can’t add an extra class, but maybe this will help you https://www.screencast.com/t/Hdupbbec8

.tdm-header-menu-btns .tdm-menu-btn1 .tds-button1{
background-color: red;
}

.tdm-header-menu-btns .tdm-menu-btn2 .tds-button1{
background-color: green;
}

Thank you for your understanding.

Garba
tagDiv Member

I want to specify, I need:

1. Header background: height 250px
2. Logo: 237×118 (aligned left and center in height)
3. Header ad: 728×90 (aligned right and center in height)

Calin
tagDiv Staff

Hi,

If this is what you need https://www.screencast.com/t/Ken6uwpdo0d
then you can use this code :

.td-header-style-1 .td-header-sp-logo {

margin: 28px 0;
}
.td-header-sp-logo img {
margin-left: 0 ;

}
.td-header-sp-recs {
margin-left: 56px!important;
}

Thanks.

StefanGebala
Participant
#0

Hi,
I have a problem with Newspaper AMP (using a Tagdiv Theme).
I’ve added a proper google analytic code for AMP and it is working fine.
But I’ve also would like to analyze traffic using different solution (Matomo/Piwik).
The problem is, that I have no idea how to embed trafic code (pixel) to AMP pages.

This is how the code should look like (I’ve removed page name that it will not interfere with my analytics)

<!-- Matomo Image Tracker-->
< img sr c="https://www.wyborkierowcow.pl/analytics/piwik.php?idsite=1&rec=1" alt="" / >
<!-- End Matomo -->

Copying it into GA window broke GA code.
I’ve copied it into header advert place, but it’s not seen by my Matomo Analytics.

Is there any other editor, where this can be added and will be visible to my privet analytics?

thx

Stef

Garba
tagDiv Member

Thanks Calin for your help.

Unfortunately, I was unable to make the correct sizes. Please see the link and give my an exact code for appropriate view both for header, logo and header ad.

http://beautymagazine.ge/

Thank you in advance.

Simion C.
tagDiv Staff

Hi,

Seems that the shop page and the product page are empty from the header down. You could check if there are enough resources as a first step
https://forum.tagdiv.com/requirements-for-newspaper/
Be sure to check if this is available – https://www.screencast.com/t/So5ne5Qu

https://docs.woocommerce.com/document/server-requirements/

There is also an error which seems to appear only in Woocommerce pages
https://www.screencast.com/t/HI92BHsDhgK
You could also contact the hosting provider if possible and mention this to them, they might have some ideas.

Thanks

Simion C.
tagDiv Staff

Hi,

Thank you very much for your appreciation of the theme. When a background image or color is set the website will be boxed
https://forum.tagdiv.com/background-introduction/

There are settings in this case to stretch the header and footer widths if necessary
https://www.screencast.com/t/cGvqMapz7uz
You can use those to stretch the respective sections despite the background.

Please let us know if you have more questions.
Thanks

David Bronkhorst
tagDiv Member

Hi Catalin, Image size I use is: 1024 x 800. Grey border problem is only with first header image in grid, the rest displays correctly:
Screen Shot 2018-10-03 at 12.20.07

paperweight
tagDiv Member

Thank you, but I don’t understand why it would be erased if I update the Newspaper them? I don’t think I ever had this problem before when I updated a theme… if it truly is removed, then it’s best for me to do a header.php in a Child theme.

Catalin
tagDiv Staff

Hello hardmoney,

All of the information about our Ads can be found here -> https://forum.tagdiv.com/header-ads-adsense/

Thanks.

EPICsm
Participant
#0

Hello

Congratulations on a fantastic theme. I have one question. Is it possible when I use a background image on a page or category that the top header and the footer does not cut off either side of the content section and continues to the end of the screen like it does without a background image?

Thanks

Calin
tagDiv Staff

Hi,

You can do that manually, please go in Appearance>Editor and select Theme Header, you can put your code there, but be notice when you’ll update the theme you need to do this again.

Thanks.

Calin
tagDiv Staff

Hi,

In order to do that you need to use a custom css, please go in Newspaper> Theme panel> Custom code> Custom css and past the code:

.td-category-header .td-pulldown-filter-list li:nth-child(5) {
display:none;
}

See results: https://www.screencast.com/t/5Qj8hiZIaYv

Thanks.

Catalin
tagDiv Staff

Hello Ninhigan,

Here is talking about a header menu from our theme. So, why did you used one from our header styles which have this style which you want, like header style 10, for example?
You have to add your ad code for header ads, according to our documentation from here -> https://forum.tagdiv.com/header-ads-adsense/

Thanks for your understanding!

Catalin
tagDiv Staff

Hello techevar,

Please check our documentation from here -> https://forum.tagdiv.com/custom-ad-spots/ -> https://forum.tagdiv.com/header-ads-adsense/

Thanks for your understanding!

Viewing 25 results - 16,776 through 16,800 (of 29,850 total)