Hello, Its been two days since I implement amp auto ads in my website. I read all the comments posible, but auto ads are not showing. Please if you can kindly review my script and tell me if it is correct.
thank you
I modified the HTML-START.php file
<?php
/**
* HTML start template part.
*
*/
?>
<!doctype html>
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( ‘html_tag_attributes’ ) ); ?>>
<head>
<meta charset=”utf-8″>
<meta name=”viewport” content=”width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no”>
<?php do_action( ‘amp_post_template_head’, $this ); ?>
<style amp-custom>
<?php require_once(‘style.php’); ?>
<?php do_action( ‘amp_post_template_css’, $this ); ?>
</style>
<script async custom-element=”amp-auto-ads”
src=”https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”>
</script>
</head>
<body class=”<?php echo esc_attr( $this->get( ‘body_class’ ) ); ?>” itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WebPage”>
<amp-auto-ads type=”adsense”
data-ad-client=”ca-pub-XXXXXXXXXX”>
</amp-auto-ads>
<div id=”td-outer-wrap”>
Hi,
If I understand correctly you refer at this comments https://www.screencast.com/t/xUfKnYMu4
If is so just add this custom css :
.page .td-module-comments{
display: none;
}
in Newspaper>theme panel>custom code>custom css and all comments on pages will disappear
see results:
https://www.screencast.com/t/zmRngy8yErt
Hello Gregory,
You are probably uploading the whole theme package. You have to upload only the theme zip file, not the whole package which contains other items
– https://help.market.envato.com/hc/en-us/articles/202821510-Theme-is-missing-the-style-css-stylesheet-error
These are the theme install methods with steps for each method
– https://forum.tagdiv.com/install-via-wordpress/
– https://forum.tagdiv.com/install-via-ftp/
Regarding on child theme, please notice that’s not required and it’s optional.
Thanks for your understanding!
Hello marshallgunnell,
You should use a bit of CSS code if you want to remove the Footer section for a certain page. You can provide your website URL so I can take a closer look at it and also, so I will be able to provide a more accurate response/code.
Thanks for your understanding!
Hi,
The image is set on footer page:
https://www.screencast.com/t/Kk6hBiju5k
Here is the image without effect
https://www.screencast.com/t/t41jron9qvl
In oreder to remove that image you need to go in Newspaper>Theme panel> Footer> Footer settings and click on edit footer page https://www.screencast.com/t/PxSH2SYcF , after the page is open click on the page select the css for row and remove the background image https://www.screencast.com/t/SfDdUVnt
Hope this will help you.
Thanks.
Hello mepstein,
If you are using the General Responsive Mobile and not the Mobile Theme plugin, you should simply add a menu item from Menus and then, with a such a custom CSS code you should hide it for the desktop version.
Thanks for your understanding!
Hi,
I don’t quite understand what template box size you refer to.
If you are referring to post templates or page templates, and if you are using the tagDiv Cloud Library all you need to do is to select the first element under the menu and set to css example for posts: https://www.screencast.com/t/wC50xIF5G
Hope this will help you.
Thank you for your understanding.
Hello cronosalblog,
If you want to reduce the margin-bottom for each block title, you need to use the code below and place it in Theme panel -> Custom CSS area.
.block-title{
margin-bottom:4px!important;
}
The result is here -> https://www.screencast.com/t/MbemkQaiiF
Thanks for your understanding!
Hi,
When I examine the web page in Chrome Dev Tools, I see that there are two resources which give 404 error. They are newsmag.woff?12 & newsmag.ttf?12. However, when I look at under …/css/images/icons/, I can see newsmag.woff and newsmag.ttf files?
What would it be wrong?
Kindly regards,
Sabri
Hello,
I downloaded your Wine Aroma demo to customize it for our site. Like so many others,my uploaded image becomes a blurry background image, its not sharp like the one sold with the demo. Now, probably unlike some of the other users who complained of the same thing, I am a graphic designer, so I understand about proper image sizes and ppi. I had to find where the the background image can be changed, because I couldn’t find instructions on that. Its in the CSS section. I then went to the Media Library, the demos background image, the one behind the wine bottles is 2560×900. So, I created and uploaded a file from photoshop which exactly matches that so it is also 2560×900 at a very high 468 PPI resolution, exactly the same as the image behind the wine bottle, yet it STILL shows up blurry. I used the “Cover” setting because the “Do Not Repeat” setting uploads a smaller image, still blurry. Whats worse is I have even re-uploaded the rolling hills, that is the image behind the wine bottles…it up Blurry! How is that possible when its supposedly the source image used!?! Why does this problem exist with Newspapers themes?? If it’s not a problem you need to create specific instructions on how to change it where to find it and how to upload it so that people don’t spend 5 hours trying to do it only to fail!
Also, I couldn’t find a satisfactory answer from your team that would resolve the blurry background issue. You need to speak with your original designers and developers to understand what they’ve done to create sharp background images. it is NOT an incorrect size or pixels per inch (ppi) issue. Please reply as soon as possible.
Hi,
I tried to edit the home page with tagDiv Composer but when it loaded it’s like loading forever.
and this error messages appearing in google chrome console
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load[]=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:9 JQMIGRATE: Migrate is installed, version 1.4.1
www.saudigamedev.com/:1 Failed to load resource: the server responded with a status of 503 (Service Temporarily Unavailable)
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load[]=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:2 Uncaught DOMException: Blocked a frame with origin "https://saudigamedev.com" from accessing a cross-origin frame.
at contents (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:2:26921)
at Function.map (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:2:3613)
at a.fn.init.n.fn.(anonymous function) [as contents] (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:2:27001)
at HTMLIFrameElement.loadIframe (https://saudigamedev.com/wp-content/plugins/td-composer/assets/js/js_files_for_wrapper.min.js?ver=9e241c87ee8782e8f19bb886a935e653:312:388)
at HTMLIFrameElement.dispatch (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:3:12444)
at HTMLIFrameElement.r.handle (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:3:9173)
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load[]=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:2 Uncaught DOMException: Blocked a frame with origin "https://saudigamedev.com" from accessing a cross-origin frame.
at contents (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:2:26921)
at Function.map (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:2:3613)
at a.fn.init.n.fn.(anonymous function) [as contents] (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:2:27001)
at Object.init (https://saudigamedev.com/wp-content/plugins/td-composer/assets/js/js_files_for_live_css.min.js?ver=9e241c87ee8782e8f19bb886a935e653:11:412)
at https://saudigamedev.com/wp-admin/post.php?post_id=5&td_action=tdc&tdbTemplateType=page&prev_url=%2F%2Fsaudigamedev.com%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage:2717:26
at dispatch (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:3:12444)
at r.handle (https://saudigamedev.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jquery-ui-cor&load%5B%5D=e,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:3:9173)
?v=2.0:6 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403
v @ ?v=2.0:6
www.saudigamedev.com/:1 Failed to load resource: the server responded with a status of 503 (Service Temporarily Unavailable)
3?v=2.0:6 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403
v @ ?v=2.0:6
_ @ ?v=2.0:6
o @ ?v=2.0:6
3?v=2.0:6 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403
Thanks
If you have no option to do this, pls provide me the css code to add this into custom code.
Hi,
1. There is no settings in our theme for that, but you can follow some steps to do that.
Please read this-> https://www.shoutmeloud.com/how-to-remove-date-from-google-search-results.html
-> https://oscarmini.com/2014/04/how-to-remove-date-from-google-serp-snippets.html
2.Please notice that the speed of your website depends on how well your site is optimized.
Notice that is not a simple task and if you do not have any experience in this regard you will do not bring good results for the theme. Also, notice that we have a speed optimization tutorial but this is addressed only to advanced users. So, if you follow the steps which are presented in this tutorial here -> https://forum.tagdiv.com/how-to-make-the-site-faster/ you can increase the page speed loading and if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because the speed optimization services are not covered by our support policy, as you can read here -> https://forum.tagdiv.com/support-policy-2/ Check our documentation here -> https://forum.tagdiv.com/requirements-for-newspaper/ regarding on dedicated server to fit our requirements.
Unfortunately, our theme does not have such an option to minify the style.css file and we cannot recommend any plugins with this functionality because is not tested with our theme. For minifying this file, we are using CloudFlare for our demo and works fine. If you want to read other views from our users, please check this topic -> https://forum.tagdiv.com/topic/tip-how-to-easily-minify-your-css-without-breaking-your-site/
Also, check all of your Ad Spots and if you have entered any suspicious code through them, remove all of them and check the results without them.
One of our top members here on the forum wrote his own optimization tutorial here:
https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/ and here -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
Basically, these are the theme requirements
– https://forum.tagdiv.com/requirements-for-newspaper/
Another useful guide for increasing the page speed can be found here -> https://kinsta.com/blog/google-pagespeed-insights/
Thanks for your understanding!
Hi,
If you want for all website, https://forum.tagdiv.com/wp-content/uploads/2017/05/backgorund-color.png
https://forum.tagdiv.com/wp-content/uploads/2017/05/backgorund-color.png
You can read more about this here: https://forum.tagdiv.com/background-introduction/
If you want the background color only for post please try below css, also you can change the colors :
.post{
background-color: lightgray;
}
.tdc-row{
background-color: white;
}
Thank you for your understanding.
Hi,
In order to do that you need to go on flex block layout , hide the elements you don’t want to have on the flex
https://www.screencast.com/t/PfKDiDU95L
https://www.screencast.com/t/m1WqiYCMy
https://www.screencast.com/t/PePwM7Kxmn
After that you need to set the css on the layout
https://www.screencast.com/t/qPnY59EYxRYk
https://www.screencast.com/t/O3gxgjdPUko8
Hope this will help you.
Thank you.
I am working on a website and I want to add two menu (top menu and bottom menu). These menu differ in CSS and I can’t find how to add that.
I was able to add two lines menu, but both contained same structure and design.
As soon as you reply I’ll attach an image in the email so you can understand exactly what I want.
Thanks in advance.
If someone is facing the same issue, removing the following lines from Newspaper/style.css will make the map integration work properly:
Line 40576:
body.td-animation-stack-type0 .td-animation-stack .entry-thumb,
body.td-animation-stack-type0 .post img {
opacity: 0;
}
Hi stephenduggan,
If this is what are you looking for https://www.screencast.com/t/Arz5iwgZ2D15
then please add this css in Newspaper>Theme panel>Custom code>Custom css>
.td-header-style-1 .td-header-sp-logo {
margin-left: 0;
padding-left: 0;
margin-right: 56px;
padding-right: 48px;
}
https://www.screencast.com/t/avRSA9GLsb4o
Thank you.
Hi,
Unfortunately to set the background color on specific/one post, this is possible only with custom css.
In order to do that you need to get the post id, just go in post and hover the title post https://www.screencast.com/t/5Cf6BVDe
https://www.screencast.com/t/OganU3cnjGb
the custom css is :
.postid-8197 .post{
background-color: lightgray;
}
.postid-8197 .tdc-row{
background-color: white;
}
You need to paste the css in Newspaper>Theme panel>Custom code>Custom css
Hope this will help you.
Thank you for your understanding.
In Appearance / Themes / Customize / additional CSS
we want the suggestions to be activated when writing.
as in the photo.
https://drive.google.com/open?id=1t1ZhbljrG3RfSdbwNLPAEpt3KcEFcvgV
When I install the newspaper theme. system remind me followed items
Broken Themes
The following themes are installed but incomplete.
Name Description
Newspaper Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet. Delete
Please let me know how to fix.
Hi,
In order to edit the demo file you need to go in Newspaper>includes>demos>fast>demo_style.css
on line 15
https://www.screencast.com/t/IbKm1xAoc3h
https://www.screencast.com/t/GYqLtetMzTp
Hope this will help you.
Thank you.
Hi Calin,
Thank you for getting back to me. In response to your post:
I have met the requirements.
I don’t have the Apache activated on my server, so it does not appear under the php.ini on ‘System Status’
With regards to Sonria Dental, you are not addressing the issue I raised. I will explain:
Firstly, the size of the image should not matter as you can scale the size you want to show it at. The image is not that big either.
But, I am not concerned about the sizing of it. This is an easy fix.
MY CONCERN
***********
My concern is the padding around the images I upload!
Let’s Take Sonria Dental: The space between the top of the image and the Block above it is almost the same dimension of the height of the image itself! It’s massive, both above the image and below the image! In TagDiv composer, simply hover over the Sonria Dental image and you can see the padding of the space above and below the image that I can’t take away!
I tried to change this with the padding and margin settings in Css, but to no avail. The space is nothing to do with the image, so it has nothing to do with the size of the image.
OTHER PROBLEM
*************
Can you also explain to me how I delete an empty column? I have many empty columns on the page, none of which I can delete because I can not see an option to do it.
Thanks.
Hi! Is it possible to change the background color only on single post? Im thinking of having it white where the post content is and a grey on outside the post. Something like this https://imgur.com/a/OjHsJUF . At the moment on single post I am using a theme made from cloud templates. I guess the single post has to be boxed in order to do that and some css for background after.
Hi,
i have the latest version of newspaper(9.1) and i’m using fast news demo,i can change the css file,but i need to know the url of the file to change because i have a lot of style.css file (and the demo-style.css too) if you can give me the snippet code to change and the path of the file That will be great.
thanks!