- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsWhat is Ajax preloading?
Hi! How do I remove a script from my website that is possibly the source of the 503 error and WP Editor block problems?
<script src="https://ajax.cloudflare.com/cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.js" data-cf-settings="20f0fce5f45a203c21aacd52-|49" defer=""></script></body>
When I disabled every plugin, this script still shows up in the page source.

should I ignore it. Other cache plugin not compactible with newspaper theme.
Please clear it so I do work without tension.
Here is my Mailchimp embedded form code.
<!-- Begin Mailchimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="https://welcometospacelounge.us2.list-manage.com/subscribe/post?u=70a4cd21e573c5ea055e67c60&id=d055bc6e63" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<h2>Subscribe</h2>
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_70a4cd21e573c5ea055e67c60_d055bc6e63" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email'; }(jQuery));var $mcj = jQuery.noConflict(true);</script>
<!--End mc_embed_signup-->
Hi,
Normally should be https://www.site.com also we have a small guide for Cloudflare (CDN) -> https://forum.tagdiv.com/cloudflare-cdn/
Thank you!
Hi,
The best options for mobile theme plugin and amp are these -> https://i.imgur.com/EYfLUBX.png -> https://i.imgur.com/nieHCCX.png
Yes, you can use these elements for speed, we have a guide for Cloudflare -> https://forum.tagdiv.com/cloudflare-cdn/
Unfortunately for Autoptimise we do not have a guide for the, moment, sorry! you need to find the right settings for this plugin, we have some guides from here:
-> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Thank you!
Hi,
Our cloud template can be open in WordPress backend only in classic editor and those can be edited using tagDiv Composer.
For example , if you have installed a pro demo (magazine pro) then you have selected in theme panel> footer a footer template like this -> https://i.imgur.com/pM36QLM.png if you want you can edit it using tagdiv Composer -> https://i.imgur.com/lcdNhPF.jpg after the homepage is open in tagDiv Composer, go down to footer and edit it -> https://i.imgur.com/l1XV8mb.png
Thank you!
Hi, unfortunately for the moment we still recommend to set disable the rocked loader option for CDN -> https://forum.tagdiv.com/cloudflare-cdn/ but this is just a recommendation, if you want you can make a test and activate it to see if everything is working correctly.
Thank you for your understanding!
Hi,
If you have installed the magazine pro then you have selected in theme panel> footer a footer template like this -> https://i.imgur.com/pM36QLM.png if you want you can edit it using tagdiv Composer -> https://i.imgur.com/lcdNhPF.jpg after the homepage is open in tagDiv Composer, go down to footer and edit it -> https://i.imgur.com/l1XV8mb.png
Pro demo are made using cloud templates, therefore these can be edited with tagDiv Composer.
Thank you!
Hi, I just want to checked your website and this is not working -> https://i.imgur.com/uqOxQ9i.png
Also for cache we recommend only WP Super Cache plugin you can use other cache plugins but we do not know the right settings for them also for CHD we recommend to use these settings -> https://forum.tagdiv.com/cloudflare-cdn/
Let me know the results!
Hi
I am using the newspaper theme with W3 Total Cache and Amazon Cloudfront as my CDN. Everything works fine apart from the Newspaper woff and ttf fonts not being delieverable through the CDN. What is the issue and is there a fix for it? My website is quanfinancecourses.com
Jerikstl… I know this is probably an obvious answer, but have you tried clearing all caches? Caching plugin, browser cache, and CDN/Cloudflare cache.
You can also try manually installing the theme with a fresh download from ThemeForest. Then log into your web host > CPanel > File Manager > WP Content > Themes > Don’t rename the old theme folder, but compress it to use as a backup, upload fresh theme zip file into the themes folder, theme zip file only, delete old theme folder, then extract fresh theme zip file. You won’t lose any of your settings this way either.
EDIT: Delete Newspaper theme folder only, not child theme.
-
This reply was modified 5 years by
AEGISAlliance. Reason: edit don't delete child theme
Hi all,
I cannot get the below widget code to work in a column text. What am I doing wrong?
It states: Copy and paste the code between the <head> and </head> section of your website.
<script data-name=”BMC-Widget” src=”https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js” data-id=”BareSoledGirl” data-description=”Support me on Buy me a coffee!” data-message=”Thank you for visiting. You can now buy me a coffee!” data-color=”#BD5FFF” data-position=”” data-x_margin=”18″ data-y_margin=”18″></script>
Hi,
If there is no cache plugin enable and cdn, then it can be only browser cache, please make a test and publish a new post, then check the website in incognito.
let me know the results!
Thank you!
On this page, it says “Font Awesome” set is “included” in Newspaper X: https://themeforest.net/item/newspaper/5489609
However, the font awesome codes don’t work.
So I installed Font Awesome manually by using the cdn header code.
Now, there are just little squares where my font-awesome icons should be.
What am I doing wrong?
Hi,
Is possible that you had set an individual cloud header on this page http://www.annaobermeier.at this should explain why is a different header from the one set in theme panel. Please check it using tagDiv Composer like this: edit the page -> https://i.imgur.com/bgDpVhn.png click on the manage -> https://i.imgur.com/X063NUi.png and set the global template -> https://i.imgur.com/xb9MuHh.png after that clear all cache and purge cdn, then you should have only one header for entire website and the problem on Firefox browser / some Safari should be fix using standard header.
Let me know the results!
Hi,
So if I understand correctly, you get this code:
<script type="text/javascript">
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
_st('install','X9BNG2bfdQNHgCke8b74′,'2.0.0′);
</script>
That need to be set in the theme to use a different search ? there are some indications where the code should be set in a theme ?
Please provide someone details about the api code.
Thank you!
Hi I am trying to get the API for the search Swiftype to work.
I have applied the suggested code to the javascript footer section (before the </body> tag in HTML)
<script type=”text/javascript”>
(function(w,d,t,u,n,s,e){w[‘SwiftypeObject’]=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,’script’,’//s.swiftypecdn.com/install/v2/st.js’,’_st’);
_st(‘install’,’X9BNG2bfdQNHgCke8b74′,’2.0.0′);
</script>
But the wordpress default search still is being used
Can you help me please on how to install this.
Dan Kosmayer
This is the link to my site https://www.netsportworld.com/category/football-predictions/
I have followed the above suggestions and set the bootstrap code(code below) here
https://i.imgur.com/kw1Iuge.png
and then the table html code(code below) here https://i.imgur.com/o4HJCxi.png
The tables are displaying as expected but now the issue I am running into is the the mobile menu tab https://imgur.com/76FnjgV to display my categories is no longer responding. nothing happens when clicked on the phone. how do I resolve this(I think it has to do with the code I place in the javascript section because once I delete it, the mobile menu works well again)
CODE
BOOTSTRAP CODE
<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css” integrity=”sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm” crossorigin=”anonymous”>
<script src=”https://code.jquery.com/jquery-3.2.1.slim.min.js” integrity=”sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN” crossorigin=”anonymous”></script>
<script src=”https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js” integrity=”sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q” crossorigin=”anonymous”></script>
<script src=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js” integrity=”sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl” crossorigin=”anonymous”></script>
TABLE CODE
<nav>
<div id=”nav-tab” class=”nav nav-tabs” role=”tablist”>Home
Profile
Contact</div>
</nav>
<div id=”nav-tabContent” class=”tab-content”>
<div id=”nav-home” class=”tab-pane table-responsive fade show active” role=”tabpanel” aria-labelledby=”nav-home-tab”>
<table class=”table table-striped”>
<thead>
<tr>
<th scope=”col”>#</th>
<th scope=”col”>First</th>
<th scope=”col”>Last</th>
<th scope=”col”>Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope=”row”>1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope=”row”>2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope=”row”>3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<div id=”nav-profile” class=”tab-pane table-responsive fade” role=”tabpanel” aria-labelledby=”nav-profile-tab”>
<table class=”table table-hover”>
<thead>
<tr>
<th scope=”col”>#</th>
<th scope=”col”>First</th>
<th scope=”col”>Last</th>
<th scope=”col”>Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope=”row”>1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope=”row”>2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope=”row”>3</th>
<td colspan=”2″>Larry the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<div id=”nav-contact” class=”tab-pane table-responsive fade” role=”tabpanel” aria-labelledby=”nav-contact-tab”>c</div>
</div>
Hi guys,
Even if I made the settings you recommended ( https://tagdiv.com/how-to-increase-page-loading-speed/ ), I am interested to get a better score ( https://tools.pingdom.com/#5d2d6670a4400000 https://tools.pingdom.com/#5d2e677c93000000 )
The hosting is very good and has a great performance (tested on other themes).
1. Settings done according to your instructions
WP Super Cache – setup done
Expire Headers – added in .htaccess but pingdom reported they are not added.
Lazy load from Template settings: enabled
CDN: do not need it because my traffic is represented by Romanian users, located in Romania (https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/)
2. Expired headers added but reported as not added
There are 8 static components without a far-future expiration date.
https://fonts.googleapis.com/css?family=Open+Sans%3A400%2C600%2C700%2C300%7CRoboto%3A400%2C500%2C700%2C300&display=swap&ver=10.3.6.1
https://www.googletagmanager.com/gtag/js?id=UA-178493727-1
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
https://www.google-analytics.com/analytics.js
https://adservice.google.ca/adsid/integrator.js?domain=www.doctorbro.ro
https://adservice.google.com/adsid/integrator.js?domain=www.doctorbro.ro
https://www.googletagservices.com/activeview/js/current/osd.js?cb=%2Fr20100101
https://pixel.wp.com/g.gif?v=ext&j=1%3A8.9.1&blog=183178774&post=153&tz=0&srv=www.doctorbro.ro&host=www.doctorbro.ro&ref=&fcp=1101&rand=0.647507365239576
Is it recommended to host them locally and add expired headers for them?
3. The gtmetrix tool (waterfall) shows me that there are some .css / .js file requests that takes a lot of time to load: https://gtmetrix.com/reports/www.doctorbro.ro/GBYVzcB1 ( http://prntscr.com/um9djf )
How can I minify the css files? How can I combine javascript files (enable minify javascript files) or delay javascript execution. WP Rocket has these options but unfortunately, I am using the plugin you recommended.
I am using the above html and css. the table is coming but the css is not working well, what am I doing wrong and how do I get it to work
link to website(last table at bottom): https://www.netsportworld.com/category/football-predictions/
HTML code:
<link href=”//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css” rel=”stylesheet” id=”bootstrap-css”>
<script src=”//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js”></script>
<script src=”//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js”></script>
<!—— Include the above in your HEAD tag ———->
<section id=”tabs” class=”project-tab”>
<div class=”container”>
<div class=”row”>
<div class=”col-md-12″>
<nav>
<div class=”nav nav-tabs nav-fill” id=”nav-tab” role=”tablist”>
Project Tab 1
Project Tab 2
Project Tab 3
</div>
</nav>
<div class=”tab-content” id=”nav-tabContent”>
<div class=”tab-pane fade show active” id=”nav-home” role=”tabpanel” aria-labelledby=”nav-home-tab”>
<table class=”table” cellspacing=”0″>
<thead>
<tr>
<th>Project Name</th>
<th>Employer</th>
<th>Awards</th>
</tr>
</thead>
<tbody>
<tr>
<td>Work 1</td>
<td>Doe</td>
<td>john@example.com</td>
</tr>
<tr>
<td>Work 2</td>
<td>Moe</td>
<td>mary@example.com</td>
</tr>
<tr>
<td>Work 3</td>
<td>Dooley</td>
<td>july@example.com</td>
</tr>
</tbody>
</table>
</div>
<div class=”tab-pane fade” id=”nav-profile” role=”tabpanel” aria-labelledby=”nav-profile-tab”>
<table class=”table” cellspacing=”0″>
<thead>
<tr>
<th>Project Name</th>
<th>Employer</th>
<th>Time</th>
</tr>
</thead>
<tbody>
<tr>
<td>Work 1</td>
<td>Doe</td>
<td>john@example.com</td>
</tr>
<tr>
<td>Work 2</td>
<td>Moe</td>
<td>mary@example.com</td>
</tr>
<tr>
<td>Work 3</td>
<td>Dooley</td>
<td>july@example.com</td>
</tr>
</tbody>
</table>
</div>
<div class=”tab-pane fade” id=”nav-contact” role=”tabpanel” aria-labelledby=”nav-contact-tab”>
<table class=”table” cellspacing=”0″>
<thead>
<tr>
<th>Contest Name</th>
<th>Date</th>
<th>Award Position</th>
</tr>
</thead>
<tbody>
<tr>
<td>Work 1</td>
<td>Doe</td>
<td>john@example.com</td>
</tr>
<tr>
<td>Work 2</td>
<td>Moe</td>
<td>mary@example.com</td>
</tr>
<tr>
<td>Work 3</td>
<td>Dooley</td>
<td>july@example.com</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
CSS code:
.project-tab {
padding: 10%;
margin-top: -8%;
}
.project-tab #tabs{
background: #007b5e;
color: #eee;
}
.project-tab #tabs h6.section-title{
color: #eee;
}
.project-tab #tabs .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
color: #0062cc;
background-color: transparent;
border-color: transparent transparent #f3f3f3;
border-bottom: 3px solid !important;
font-size: 16px;
font-weight: bold;
}
.project-tab .nav-link {
border: 1px solid transparent;
border-top-left-radius: .25rem;
border-top-right-radius: .25rem;
color: #0062cc;
font-size: 16px;
font-weight: 600;
}
.project-tab .nav-link:hover {
border: none;
}
.project-tab thead{
background: #f3f3f3;
color: #333;
}
.project-tab a{
text-decoration: none;
color: #333;
font-weight: 600;
}
Sorry, that’s not fixing the problem.
The console shows the fonts are being called from a staging site (stage.site), instead of the production site. Why would this be? I’ve re-edited the header template on the production site.
Regarding the tips crunchify.com, I did edit the .htaccess file on both sites. There is not a CDN to adjust.
Second, it does address the question of the logo.
-
This reply was modified 5 years by
ddj.
Hi,
For the problem with icons, is look that these are block by CORS policy -> https://i.imgur.com/pwhTqFP.png , you can fix this by follow the steeps from this article -> https://crunchify.com/how-to-fix-access-control-allow-origin-issue-for-your-https-enabled-wordpress-site-and-maxcdn/
Hope this will help!
Thank you!
Hi,
Please make one more test, please remove the YouTube api key from theme panel, after that generate a new one and set it in theme panel -> https://forum.tagdiv.com/youtube-api-key/ after that clear all cache and purge the cdn if you are using.
Let me know the results!
Hi,
Here is how is look on iPhone X -> https://i.imgur.com/3UWw1W7.png I think that was something temporary, maybe some cache -> https://i.imgur.com/prM1Bqp.png
I think that the problem that you can say is that you are using the mobile theme plugin, and this is displaying on some devices, if is so, please clear all caches you have and purge CDN (if you are using), after that the layout should be the same for all devices.
Thank you!
I tried to use CDN service in AWS Lightsail.
After that, the sever is down continually.
When I reboot the sever it still very slow to write a post and then it stop again.
But when change basic theme of the wordpress, I can not see any problem.
How can I solve the problem?