- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Yes, well — theme doesn’t manage your open graph settings, image compression level, server speed, IP blocking, Facebook API, etc.
All you can do on theme and plugin side is add the tags, check that FB can access them, adjust anything breaking the tags, or blocking loading of images, etc., and then it’s up to FB to capture the content.
You cannot pay them or force them or berate them — they don’t care; you’re not paying them to grab your posts.
I’ve been in the beta FB stuff since FB first launched, and this is a recurring issue. But there you are.
Setup your FB developer account, check your posts, code, etc., learn to clear FB cache of your post if it’s hiccup-ing, check your page speed carefully, caching, image speed, etc. — all that stuff impacts FB being able to get stuff “quick.” A 600×450 image that is 35kb will be more likely to get captured properly than a 350kb image the same size, for example.
Anyway, good luck.
Also this is what I get when I go to developer tools on Chrome and click on Console. I uploaded the “SAVE AS” results here https://uploadfiles.io/nqkxc and copied and pasted below… Any ideas?
firebase.js Failed to load resource: the server responded with a status of 404 ()
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
2libcode1_noajax.js:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/servlet/view/banner/javascript/zone?zid=2&pid=0&resolution=1366×589&random=82585056&millis=1504209841183&referrer=http%3A%2F%2Fjewishbreakingnews.com%2F, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
avp_single @ libcode1_noajax.js:1
2zone:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/js/interactive1.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ zone:1
2libcode1_noajax.js:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/servlet/view/banner/javascript/zone?zid=1&pid=0&resolution=1366×589&random=88628416&millis=1504209841769&referrer=http%3A%2F%2Fjewishbreakingnews.com%2F, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
avp_single @ libcode1_noajax.js:1
2zone:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/js/interactive1.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ zone:1
2libcode1_noajax.js:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/servlet/view/banner/javascript/zone?zid=1&pid=0&resolution=1366×589&random=98862652&millis=1504209842646&referrer=http%3A%2F%2Fjewishbreakingnews.com%2F, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
avp_single @ libcode1_noajax.js:1
2zone:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/js/interactive1.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ zone:1
2libcode1_noajax.js:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/servlet/view/banner/javascript/zone?zid=7&pid=0&resolution=1366×589&random=71030889&millis=1504209843046&referrer=http%3A%2F%2Fjewishbreakingnews.com%2F, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
avp_single @ libcode1_noajax.js:1
2zone:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/js/interactive1.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ zone:1
2libcode1_noajax.js:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/servlet/view/banner/javascript/zone?zid=1&pid=0&resolution=1366×589&random=69364728&millis=1504209843500&referrer=http%3A%2F%2Fjewishbreakingnews.com%2F, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
avp_single @ libcode1_noajax.js:1
2zone:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/js/interactive1.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ zone:1
2libcode1_noajax.js:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/servlet/view/banner/javascript/zone?zid=7&pid=0&resolution=1366×589&random=37041890&millis=1504209844651&referrer=http%3A%2F%2Fjewishbreakingnews.com%2F, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
avp_single @ libcode1_noajax.js:1
2zone:1 A Parser-blocking, cross site (i.e. different eTLD+1) script, http://jbn.advertserve.com/js/interactive1.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ zone:1
jquery.js?ver=1.12.4:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.
I think the amp endpoint function is related to changing the ‘endpoint’ — such as if you wanted /ac/ vs /amp/ or /mobile/ or whatever.
Sorry I don’t have perfect answer.
On another site, with a custom lean theme, we have it added to the /amp/ endpoints, but we’re using the venerable WP-Postviews plugin.
in this context, the function we have is this:
do_action( 'amp_post_template_head', 'process_postviews' );
They work for me. Note that the /amp/ endpoint is outside the theme as separate entity, just like having a separate print template.
You can test the /amp/ page actually validates properly (such as no inline css), and check it actually works and view the page source by going to the endpoint for one of your posts.
Hello,
I spent a whole day with the problem same as here – https://forum.tagdiv.com/topic/404-error-when-trying-to-save-a-page-using-tagdiv-composer/
I saw a many topics on this forum with same issue, and every time you give same recommendations (link below) but that’s not helping at all.
I have:
1 – Fresh WP installation
2 – No third-party plugins
3 – Server settings is fine – https://forum.tagdiv.com/system-status-parameters-guide/
I can provide a login & password to WP panel.
Please assist.
Hi,
The theme is compatible with AMP and the Yoast SEO plugin. I could not say why Google analytics is not reporting the links. You could check this topic
– https://support.google.com/analytics/answer/6343176
Thanks
Hi,
You could set a negative margin on the row containing the slider, like this
– https://www.screencast.com/t/6Mzl1fxVm
Or try a code like this for example (will apply only to homepage)
– https://www.screencast.com/t/PzvrqFitIH
.home .td-main-page-wrap {
padding-top: 0;
}
Thanks
I mean 3 articles in a row and the number of row is more than 5. for example 7 row.
So it will display 21 related articles
Hi,
In the social networks fields of the theme panel, you must enter the link to your account. For example like this for Instagram
– https://www.screencast.com/t/eTEYfK9Ct
– https://www.screencast.com/t/xYQb2c42bnt
– https://www.screencast.com/t/Hw1akYmJY
There should be no yoursite in the URL. Please check the field to be empty before inserting the link.
Thanks
Dear Simion,
Thank you so much for your immediate and informative reply.
I managed to fix everything, following your clear instructions, but the time.
I need to show the post’s published time in module 8, prior to the post’s title.
So, I opened the file td_module_8 and I tried the following:
1.
<div class="item-details">
<?php echo get_the_time( '', $post->ID ); ?>
<?php echo $this->get_title();?>
2.
<div class="item-details">
<?php echo the_time('g:i a'); ?>
<?php echo $this->get_title();?>
3.
<div class="item-details">
<?php echo this->get_the_time(); ?>
<?php echo $this->get_title();?>
For 1 and 2, I get this result (I don’t even know where this time stamp comes from):
http://marketpost.gr/docs/result1and2.png
For 3, the website crashes and I get nothing below the header and the main menu (apparently, it doesn’t recognizes what $this-> refers to).
I would appreciate it very much if you could help me with this issue and, maybe, give me a hint or an example.
Since we are discussing about module 8, I have another question (may be more easy).
I would like to change the categories tabs on hover, not on click.
Also, I would like the posts to be preloaded and don’t load at the time I choose another category tab.
If I don’t ask for too much, could you help me with the jQuery to fix that?
Here is a very short video of what I am trying to achieve:
[video src="http://marketpost.gr/docs/module-8tabs-hover.mp4" /]
Thank you for everything in advance.
-
This reply was modified 9 years by
lazdim. Reason: correct typo
Hi,
There is a solution in this topic that you could try, to count both default post page views and AMP views
– https://forum.tagdiv.com/topic/how-to-hook-hit-counter-into-amp-header/
Thanks
The amp_post_template_head() function still seems to exist. I can’t find the process_AMP_counter() in the PHP-code for the plugin, though. So I assume that this indeed causes the problem. I found something that resembles it, which is the is_amp_endpoint() function. However, this broke the website instantly:
[Thu Aug 31 09:27:22.368144 2017] [php7:error] [pid 22419] [client redacted:53621] PHP Fatal error: Cannot redeclare is_amp_endpoint() (previously declared in redacted/wp-content/plugins/amp/includes/amp-helper-functions.php:43) in redacted/wp-content/themes/Newsmag/functions.php on line 88
I’ve tried looking for functions in all of the files with the word ‘view’ or ‘count’ in them, yet come up empty. I’m afraid this is where my programming skills come to an end. The official readme also doesn’t include any information for as far as I can see.
Edit: I’ve used this documentation, where I also found the is_amp_endpoint() function: https://github.com/Automattic/amp-wp/blob/master/readme.md#handling-media.
Hi John,
I’m having the same problem with traffic drop and specifically AMP traffic not tracking properly. Did you find a solution?
Hi,
Please check these guides if you would like to modify the theme cropping system
– https://forum.tagdiv.com/api-thumbnail-introduction/
Try it like this example
– https://www.screencast.com/t/P4S6YAp0HhM
Thanks
I’m having a lot of trouble with AMP and AMP tracking. I’m using the WordPress AMP plugin and Glue for Yoast. Can you confirm that the latest Newspaper theme version is compatible with both these plugins?
AMP links are not being reported in Google Analytics either since the update.
Please advise
How to remove author name and comment counts from the font page and how to increase the excerpt’s character number? For example: Here is showing 50 characters right now. How to show 120 characters.
Hi Chris
Not at all, thanks for your view, to be honest I think there are many that can get carried away with the next big web thing, I agree completely about the site speed/responsive argument. The only reason I use AMP is because when the news carousel is working – a small independent brand can get the same visibility here in the UK as a National does. But to be honest I don’t know if ‘the man in the street’ cares about AMP at all…or even notices the difference that much. Content is still king and so they’ll click if the quality is there and the story is what they want. Plus currently it’s only search results that bring AMP results.
Many publishers are turning their backs on it apparently- one reason being that the URL is prepended Google rather than your own brand URL. Interesting times.
Note amp plugin went through some major update last month, so double check the add action variable still the same…
Hello and thank you for your theme. I’ve a couple problems.
1. Although I’ve activated my theme WordPress is mandating that I re-activate it. The problem is that I have already done so, and do not wish to create entirely new log on credentials.
2. I’ve published a post but, even though the photo, title, and subtitle appear on my homepage, the link appears to be broken.
3. My custom CSS appears to load after the theme CSS. Is the only way to correct this by manually editing the style.css sheet which came with my original theme?
In advance, thank you for your assistance.
Hello
I have two questions for you please:
1) For the “Previous” button, why it does not appear? (1 button out of 2 appears)
2) How can I swap the “NEXT PREVIOUS” pagin bar with the sharing bar? (I want the social network sharing bar to be in first position and second the bar “NEXT PREV)
Thank you
Hi TagDiv,
We have an issue with Mailpoet being unable to save changes to templates. We have turned on de-bugging in Mailpoet which suggests a Third Party issue with WP Booster and we have followed this up in the forums where it’s suggested that we add the following code to our functions.php file, to prevent enqueuing on Mailpoet pages.
Could you advise us on what to put, where it says: // Put your enqueue styles and scripts here
<?php
/**
* If your theme or plugin is inserting files in MailPoet pages
* and it is breaking some functions, you should apply this
* conditional to load your files.
*
* Normally themes use these functions wp_enqueue_style() and wp_enqueue_script()
*/
if ( ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘wysija_campaigns’ ) && ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘wysija_subscribers’ ) && ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘wysija_statistics’ ) && ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘wysija_config’ ) ) {
// Put your enqueue styles and scripts here
}
Many Thanks
Hi,
In tagdiv composer, when I add a background image to a text (in the “Text with title” element), the image covers the text makes it invisible. Same goes if I add a background color. How can I fix it?
Thanks!
We’ve been using the Automattic AMP plugin with TagDiv themes for almost 2 years now, since AMP was in beta, and works perfectly for us. Yes, you have to RTFM to modify the template, but that’s true of any custom post format, really. Simple to add adverts, and related posts, etc. — anything which can be done as a function, or added as a shortcode, will work. Worth playing with. Beauty of the ‘official’ plugin is that it’s built by same folks as WordPress and used for the VIP customers.
And not everybody is choosing to use AMP. If you have a lean fast mobile theme or responsive layout, it can work as well. AMP is an interim form until WiFi hits the next speed grade. So, in areas with slow mobile, AMP is useful, in major metro areas, not as much.
Anyway – sorry to butt in…. waiting for crap to download off my server. 🙂
Being a publisher on Google News it is a hard hit on us that Newspaper does not come with AMP I would genuinely pay good money for it to have it. The plugins that give you AMP are simply too simple and the Newspaper theme AMP version by other publishers is okay but very basic and has no review feature, tho they said they will add it if I buy it which seems rather dodgy as I could buy it and they could never do it (Plus I spend $20+ on AMP Ads from them and it does not work!!!)
I agree — it would be nice to be able to choose the social media accounts to include (via dropdown?). Some of us have multiple accounts of one channel associated with our site. (I have two Twitter accounts, for example.) Of course, that would mean labeling them in some way, I suppose.