- 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
Thanks for the code, I have applied the code and change the background color. The problem I have faced is that it cropped my woocommerce pages from the top side. Plz take a look at the pic:
I have removed the code, plz correct this and I want some changes as well
Please take a look at the pic:
https://ibb.co/ssppHtH
https://ibb.co/KXGcN2b
Plz help me on this:
1) Position the logo in the center
2) Make Visible the Search Icon in the main menu and Cart in the sub-header
3) Resize the both header and footer Amp logo up to 183px in desktop devices and 100px max in mobile devices.
Hop you understand this time.
Regards,
Hi,
You can change the background color from here -> https://www.screencast.com/t/Y8DyGMOb and set this custom css in mobile theme ->
.td-main-menu-logo .td-amp-site-logo {
max-height: 110px;
left: 35%;
margin-left: 0;
}
.td-header-wrap {
height: 120px;
}
Thank you!
Hi,
That could be done but with plugins, for example – https://barn2.co.uk/share-woocommerce-products-social-media/
– https://docs.woocommerce.com/document/integrating-products-with-social-sharing-plugins/
The theme by itself can’t share products or Woocommerce related elements, only posts. Try some plugins specifically created for sharing products, they should work.
Thanks
Hello!
I have the same issue with Google after upgrading to v. 9.7.3 – please see the screenshot – https://imgur.com/a/HTAQ0Bn
Examples of the articles – https://newsru.ca/2019/04/19/v-parke-banf-soshla-lavina-est-pogibshie/?amp; https://newsru.ca/2019/06/10/v-kanade-nashli-medvezhonka-albinosa/?amp
Thank you,
Alexei
Hello,
This question is preemptive, I want to activate the amp version in my theme.
I already have Newspaper 9.7 installed.
My question is how do I redirect the url / amp to non amp, in case I do not like the amp version.
I want to know so my visitors do not get a 404 error page if I disable them.
I know it’s by htaccess, but what’s the code?
Hi, I update my theme to the last version avaible. I have 2 errors on my site.
The first one is that all block elements from wpbakery are not visible while tagDiv Composer plugin is activated, when I deactivate tagDiv Composer plugin, Wpbakery block elements are visible again.
The second one, its that, tagDiv Composer never loads, just a infinite spining wheel, and console logs bunch of errors that are listed below.
So my site its currently down. No other plugins are installed except for those required by the theme and wpbakery, again, when I deactivate tagDiv composer Wpbakery works fine, when I activate
tagDiv composer plugin wpbakery fails to load block elements. </strong>
<code>js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:570 Uncaught TypeError: Cannot read property 'shortcode' of undefined
at js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:570
at Function.s.each.s.forEach (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,underscore,backbone,shortcode,thickbox,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-sorta&load[]=ble,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter&ver=5.2.1:4)
at js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:570
at Function.s.each.s.forEach (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,underscore,backbone,shortcode,thickbox,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-sorta&load[]=ble,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter&ver=5.2.1:4)
at Object.updateSavedShortcodes (js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:569)
at Object.init (js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:542)
at js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:580
at js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:580
(anonymous) @ js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:570
s.each.s.forEach @ load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,underscore,backbone,shortcode,thickbox,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-sorta&load[]=ble,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter&ver=5.2.1:4
(anonymous) @ js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:570
s.each.s.forEach @ load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,underscore,backbone,shortcode,thickbox,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-sorta&load[]=ble,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter&ver=5.2.1:4
updateSavedShortcodes @ js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:569
init @ js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:542
(anonymous) @ js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:580
(anonymous) @ js_files_for_wrapper.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:580
js_files_vue_modals.min.js?ver=d158fac1e2f85794ec26781eb2a38fd9:204 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2 Uncaught Error: Syntax error, unrecognized expression: #/
at Function.ea.error (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2)
at ea.tokenize (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2)
at ea.select (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2)
at Function.ea (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2)
at Function.a.find (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:8)
at n.fn.init.find (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2)
at n.fn.init.a.fn.find (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:8)
at a.fn.init.n.fn.init (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2)
at new a.fn.init (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:8)
at n (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2)
ea.error @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
ea.tokenize @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
ea.select @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
ea @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
a.find @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:8
find @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
a.fn.find @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:8
n.fn.init @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
a.fn.init @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:8
n @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
hashNavigation @ vc-accordion.min.js?ver=6.0.3:10
i @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
fireWith @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
ready @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
J @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
[Violation] Forced reflow while executing JavaScript took 35ms
VM2051:1022 GET https://elresistenciano.com/sitio/wp-content/uploads/2018/03/lifestyle-magazine-logo-mobile-1.png 404 (Not Found)
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
iframe.js:963 [Violation] 'setTimeout' handler took 123ms
?td_action=tdc_edit&post_id=34&tdbTemplateType=page:2523 GET https://elresistenciano.com/sitio/wp-content/uploads/2018/03/11.jpg 404 (Not Found)
[Violation] Forced reflow while executing JavaScript took 35ms
?td_action=tdc_edit&post_id=34&tdbTemplateType=page:2523 GET https://elresistenciano.com/sitio/wp-content/uploads/2018/03/12.jpg 404 (Not Found)
js_files_for_wp_admin.min.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:26 (5) [N.d, N.d, N.d, N.d, N.d]
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3 [Violation] 'load' handler took 155ms
ace.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:1 Uncaught TypeError: n is not a function
at n (ace.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:1)
at a (ace.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:1)
at r (ace.js?ver=6.0.3:10)
at Object.a [as require] (ace.js?ver=6.0.3:10)
at post.php?post_id=34&td_action=tdc&tdbTemplateType=page:2585
at dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3)
at r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3)
n @ ace.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:1
a @ ace.js?ver=61179afdbbd6a8d8c8a7f82ae3fcd87d:1
r @ ace.js?ver=6.0.3:10
a @ ace.js?ver=6.0.3:10
(anonymous) @ post.php?post_id=34&td_action=tdc&tdbTemplateType=page:2585
dispatch @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3
r.handle @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3
load (async)
add @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3
a.event.add @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:8
(anonymous) @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3
each @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
each @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:2
ra @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3
on @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.2.1:3
init @ td_wp_admin.min.js?ver=9.7.3:82
(anonymous) @ td_wp_admin.min.js?ver=9.7.3:91
I updated the theme and installed mobile plugin, with AMP WP plugin, following instructions. Problem is: I cannot see the amp settings link on admin side menu. Any help on this?
Hi, I have the the latest version 9.7.3 installed. Everything working fine except the Mobile Theme. Mobile theme is activated but not fully functional. Especially the MENU option; for an example; when I select a menu/sub-menu Quotes: and then it will only show BLANK PAGE and the FOOTER info, even though there are more than 15 articles in the quote category. On Desktops its fine no problem. Please help me fix the problem. Thank you in advance. Alam
Hi,
Do you maybe use a child theme? If you do, try making a small modification in it, in the functions file
– http://prntscr.com/nwzyeb
The child theme included in the 9.7.3 package contains this modification.
I should note that there are however some issues that are caused by having a child theme active at the moment. Like for example post templates not applying properly when set to posts. As soon as they are fixed, a new theme update will be released. Sorry for the inconvenience.
Thanks
Hi there, I am trying to figure out the best way of having the ability to use the Big Grid Flex 5 and have the ability to ‘Pin’ the top story to the left block. For example, on a new site, if there is a significant story it needs to stay in that location (the large left block) when more stories are added. Ideally, it would be great if the left block can be one category, and the right 4 blocks are another. For example, the left block and be categorized as ‘top news’ and ‘news’ then when it is no longer relevant the ‘top news’ category can be removed and the main block goes back to normal.
I hope this makes sense and that you can make a suggestion as to how this would work.
Thanks
Hi I copy code from adsense as
<amp-auto-ads type=”adsense”
data-ad-client=”ca-pub-XXXXXXXXXXX”>
</amp-auto-ads>
and pasted there as mentioned into the AMP advertisement but still getting issues.
Hi, on our Author page (which appears when you click an author name) only a few of the posts are showing. Is there a way to make this page show all posts by that author? I can’t find anything in the settings to change this behaviour, thanks.
For example. on this page the author has made 151 posts but only 15 are showing.
https://www.madinamerica.com/author/psimons/
I see that the issue is fixed for most pages. But there are some articles whose AMP version isn’t indexed and hence doesn’t show up in search results. Here are few examples.
Here as you can see
The page is a valid AMP Page -https://prnt.sc/o0cah7
In search, it doesn’t show the AMP version – https://prnt.sc/o0cacs
This is happening with many other pages.
Hey.
Unfortunatly on this website the custom fonts aren’t displayed correctly, for example at the “Blocks/Widgets Title” at the “Article Title” or in the Modules.
Thanks
Hi,
Yes, this is all you need to do, after that if your auto ads are approved will be show random in amp.
Thank you!
Hi,
It isn’t difficult, depends on what you want to from the above. One way is to use widgets per language. WPML will add an option to them where you can set this.
So for example begin with a empty footer template. In the footer columns add the widgets you want for one language – http://prntscr.com/o0aqay then add others for a different language – http://prntscr.com/o0aqv2
In my example They will appear depending on the language, the first one will appear when the language is English, and the second one when the language is French
– http://prntscr.com/o0asxf – http://prntscr.com/o0atcz
If you have more questions let me know.
Hi,
As far as I know there is no limit, you can add as many video IDs as needed. You can also embed a ready made YouTube playlist in a column text for example
– https://forum.tagdiv.com/topic/youtube-playlist-instead-of-each-video-individually/
If you have more questions let me know.
Thanks
Hi,
What theme version was the website using before you updated? I would suggest as a first step to reinstall the theme by FTP – https://tagdiv.com/update-newspaper-theme/
Remove the current theme and upload it again. There were changes in the theme file structure, it is better to update by FTP in this case.
Also if you use an older PHP version, try to update to version 7, 7.1 or 7.2 for example. Check the wp-memory as well, set it to 256M if possible – https://tagdiv.com/newspaper-theme-requirements/
If you already tried these suggestions, we could take a look. Send us an email at contact@tagdiv.com and provide admin login, also FTP or cPanel. Include a link to this topic in the email.
Thanks
Hi,
Please set for mobile theme the logo that you have set in footer and set this custom css in Theme panel>Mobile theme> Custom code> Css
.td-search-icon {
top: 10px;
}
.td-main-menu-logo .td-amp-site-logo {
max-height: 70px;
}
.td-header-wrap {
height: 80px;
}
Then the amp will look like this -> https://www.screencast.com/t/Ecbim615Q
Thank you!
All the posts from the website which I tested with their own tool result in valid AMP
– https://search.google.com/test/amp?id=59WwcVbgolSHn4SXIOruWw
If there was a problem the tester would have most likely detect it.
The AMP version works and looks properly – https://www.thewrestlepost.com/featured/1802/r-truth-wins-24-7-championship-on-airplane/?amp
Loads perfectly fine for me – http://prntscr.com/o0a322
Hi,
If you are using child theme for post template, you need to edit the loop-single-x.php file that represent the post template that you are using; for example if you are using post template 3 you need to edit this file wp-content/themes/Newspaper/loop-single-3.php
-> https://www.screencast.com/t/zxGJPDiEZ1v
Thank you!
There are no conflicts. Can you tell me how I can properly index the AMP version of my articles? I have about 100 articles on the website and only 60 of them are known to Google. It’s all a mess right now trying to configure and fix this issue. Any help would be really appreciated!
Hi Tagdiv,
On my website iMontreal.ca I want the ‘Large Rectangle’ Ad Placement that appears at the top of the Sidebar across all the categories (For example: imontreal.ca/category/montreal-shopping/) and articles of the website also on the sidebar of my Homepage (iMontreal.ca). For some reason it does not appear there. I don’t know if I have to activate some specific setting or what.
Is there a separate Sidebar for the Homepage? Where is it?
I’ve looked all over the backend and documentation and cannot figure out what to do. Can you let me know please.
Thanks,
iMontreal.ca
So I need to add this code
<amp-auto-ads type="adsense"
data-ad-client="ca-pub-xxxxxxxxxxxxxxxx">
</amp-auto-ads>`
here https://www.screencast.com/t/rq7aDPRWzt right?
Hi,
Please make sure that you do not have a plugin conflict with untested plugins, please deactivate all non theme/tested plugins, also if you are using child theme, clear all cache and try again.
-> https://search.google.com/test/amp?id=DxhFNBEzE-Ltwyd4efHgAg
Thank you!