Do these file changes this still apply?
https://forum.tagdiv.com/topic/post_views_count/
I tried pasting the code below to the td_flex_block_1, in the main files, but it triggered an error.
<?php echo $this ->get_views(); ?>
Any pointers?
they also added this:
That callback for articles is really really really loading down your site. There are way more than half of your traffic is just to this page. It’s like the pages loaded and then repeatedly access this resource to get your articles. Is it doing this with an ajax style call more than once or on a timer as long as the page is up, because if it is, it’s really too much. Even if each request is only taking half a second each of CPU time, getting even more than two of them within one second is enough to ram your CPU allocation to the max and once it hits that it starts slowing down trying to load share as evenly as it can.
It just can’t keep up.
HostUpon Support Team
http://www.HostUpon.com
Twitter: @HostUpon
———————————————-
Ticket ID: #473830
Subject: Site Times out – 503 and 508 Errors
Please see what the hosting company wrote:
The large majority of the traffic appears to be posts to the admin-ajax.php file, from referrers all over your website. I do not know what it’s doing here but it looks like pages all over your site are causing the browser to post to that URL and those posts occur more than once per page load, driving your account loads through the roof.
The site is stable when TD composer is deactivated,
and all other plugins are active.
Guys, my site is still experiencing awful spikes and ends up overloading bc of of the Newspaper Theme…the problems go away as soon as i revert to the 2019 default theme. I have tried deactivating all plugins except the ones needed to run and yet the Memory and Usage allocated by my host are not enough. I have tried downgrading (after the upgrade didnt help) can you please please help me figure this out?
Also,
Google Chrome said it failed to download the older version of Newspaper-tf found the the link below bc it contained viruses:
https://forum.tagdiv.com/topic/important-new-update-newspaper-9-7/
-
This reply was modified 7 years by
Freddy Meynard.
how did you downgrade?
Hi Calin,
This is what i had in mind:
Build a registration form which includes checkboxes to capture user preferences, and then pass these answers from the form to a dynamically built Homepage via “Cloud Templates” and hopefully use “tags” or categories to populate the taxonomy.
Could you recommend any plugins and developers that could help me get this done?
Hi Catalin,
I dont think you are understanding my request. There is CSS already in PLace, which is hiding the original Theme Header Ad.
The Ad that is currently visible in that page was added via TD Composer.
I want not to just “Hide” the Top Banner Ad that is get injected by via Theme Panel, I want to “Completely Remove from specific pages”. I tried the code above and it didnt work. I emptied my cache and it would always show up, which is why i ended up applying css to hide it.
I am just wondering if you can help me troubleshoot the code written for header-style-6.php
<?php if (td_util::is_ad_spot_enabled('header')) { ?>
<div class="td-banner-wrap-full td-container-wrap <?php echo td_util::get_option('td_full_header'); ?>">
<div class="td-container-header td-header-row td-header-header">
<div class="td-header-sp-recs">
<?php if ( !is_page('1027') {locate_template('parts/header/ads.php', true);} ?>
</div>
</div>
</div>
The ad that is visible on that specific page has been added via TD composer. The header ad was injected via Theme panel. While i can hide things with CSS, i would like to remove it completely from specific pages..but the code as used above still displays the Theme injected ad in the header of the page. Please help
Hi Calin,
I tried both Java and JQuery and the page still scrolls to iframe and bounces.
-
This reply was modified 7 years by
Freddy Meynard.
The idea is to only have the one i am manually placing…and for the original theme header Ad to be removed via the script… the ad for me still shows up, i have used CSS to hide it… but i dont want it hidden, i want it gone.
-
This reply was modified 7 years by
Freddy Meynard.
I have tried clearing cookies and emptying my cache, but the Ads still show up.
Hi Catalin,
The ads still appear on the page, even though i modified the header-style-6 as you suggested.
https://ibb.co/JF2H2kc
https://ibb.co/4T7ngs1
Hi Catalin,
I modified file header-style6.php
<?php if (td_util::is_ad_spot_enabled('header')) { ?>
<div class="td-banner-wrap-full td-container-wrap <?php echo td_util::get_option('td_full_header'); ?>">
<div class="td-container-header td-header-row td-header-header">
<div class="td-header-sp-recs">
<?php if ( ! is_single( array('1027', '67707') )) {locate_template('parts/header/ads.php', true);} ?>
</div>
</div>
</div>
I used the code you provided And the ad still shows….but doesn’t this statement above mean, if you are this page, then load this Ad.php… how do i make it so that it loads that “ads.php” file unless is NOT, the page ID’s i want to exclude from?
Can i use something like this:
<?php if (td_util::is_ad_spot_enabled('header')) { ?>
<div class="td-banner-wrap-full td-container-wrap <?php echo td_util::get_option('td_full_header'); ?>">
<div class="td-container-header td-header-row td-header-header">
<div class="td-header-sp-recs">
<?php if ( ! is_page( array('1027', '67707') return false);
else {locate_template('parts/header/ads.php', true);} ?>
</div>
</div>
</div>
<?php } ?>
-
This reply was modified 7 years by
Freddy Meynard.
Hi Calin,
Sorry, I did more work on that page, and i think the Ad is not whats causing the page to bounce around on page load, but an iframe inserted to this page. Do you have any tips on how to stop that behaviour? I tried using a lazy loading script and no luck, i also tried:
// prevent scrollTo() from jumping to iframes
var originalScrollTo = window.scrollTo;
window.scrollTo = function scrollTo (x, y) {
if (y === 0) {
originalScrollTo.call(this, x, y);
}
}
But the page still jumps when u first load it, see it here:
https://mycalgary.com/communities/calgary/sw/aspen/
Let me rephrase, my permalinks work just fine,
I am just wondering if there is a Page where it displays ALL the categories saved…
so not display the articles from each category, but display the category titles.
I tried copy+pasting these values and the new database didnt like them…and now eveything is gone. Is there a place where it gets saved as a string? in the Database (remember im digging in a backup of the database, i know i could have and should have exported these values from te theme settings )
I guess what im wondering is if the EXPORT THEME SETTINGS encoded string is stored anywhere in the Database so i could retrieve it as a string and just import it to that panel.
EXPORT THEME SETTINGS
This box contains all the panel options encoded as a string so you can easily copy them and move them to another server.
I have Yoast installed, but do i NEED to input the title and meta description as well? does the plugin not just pull the info from the excerpt and page title?
Quick question is there any issues with the page builder and shortcodes and how google sees this page, (pre/post render)?
Hi Ing,
Thanks for your prompt reply, however, that doesn’t explain why my articles are not getting indexed, all the search result on that google search are pages,author bios (and oddly enough advertisers).
I submitted the following xml sitemaps:
http://mycalgary.com/post.xm
http://mycalgary.com/page.xml
http://mycalgary.com/taxonomy_category.xml
http://mycalgary.com/author.xml
However the posts and categories are not showing whatsoever on google. Any ideas why?
I can understand them not ranking, but they should still be visible, no?
I have been using Query Debug, and it seems i get 500+ queries per page. It seems really high, and most come from theme, TD composer and jetpack. Any insight on how to keep these down?
