- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
Hello !
Yes, but you can import any template. that was just an example.
Thank you !
Hello,
Please make sure that you are using the amp plugin with mobile theme, after you activate the mobile theme you select one of those options from theme panel> mobile theme for AMP -> http://prntscr.com/pb4z2p save the settings and refresh the page, after that the amp settings will appear -> http://prntscr.com/pb4zpx and these errors will not longer. appear.
If there is still a problem, please provide some more details and some screenshots.
Thank you!
Hello,
I just inspect some of your amp posts -> http://prntscr.com/pft9rp ->https://search.google.com/test/amp?utm_source=gws&utm_medium=onebox&utm_campaign=suit&id=FMcYF-XD77jQ9RzYKO_HvA -> https://tagdiv.com/amp-newspaper-theme/ and these are valid just make sure that google index these links.
Thank you!
i created pkhype.com but it is not showing the same layout as designed for computer web. i activated amp feature but it is still not showing the same. every time it comes with a page with latest posts. can u please help me out and tell me what i need to do. i m not a coder so plz make it simple. thank you.
Hello. I activated the Official AMP plugin as well as mobile theme. However, while I love AMP , I want my homepage and few other pages to be non-AMP…
But, it is just not happening, even after localised selection of pages as non-AMP and deselection of ‘Pages’ and ‘Homepage’ in official AMP plugin, they still appear as AMP. Please help. My website link is Website
http://www.e18finance.com
Regards,
Virendra
In tagdiv amp plugins it showing 256 errors like,
invalid_element: <script>
invalid_attribute: [onclick]
invalid_attribute: [alt]
so, please help to solve this problem.
This theme lacks so many important features.
For example, hamburger menu for the desktop like in buzzfeed, social share counter, showing ads in post loops after a set interval, buttons in mobile menu, tooltips, accordion, even basic js validation for subscription form, GDPR toolkit, carasoul, modals and the list goes on.
However, I’m pleased by the customer service and the way this theme supports customization.
That’s why I think it’s good to tell businesses what we customers want. So take is as a healthy feedback and try to add features in next updates that are supposed to be there in a news website like share counter, js form validation, hamburger menu for desktop, gdpr toolkit like avada, etc. Do let your developers team know about this.
Have a great day.
Hi!
I noticed that when searching for anything that includes an apostrophe, no results show up.
For example, if I search for “Amy’s Kitchen”, nothing shows up. If I search for “Amy Kitchen”, the results show up correctly, however. The problem is that readers are likely to search with the ‘ and I’ve received negative feedback from people saying they weren’t able to find the articles they were looking for.
I tried updating plugins & themes, changing the header etc. Interestingly, this error only occurs on desktop views and not on mobile views.
Does anyone know how to fix this? The site is https://bestofvegan.com
Thank you!
I finally found a way to hack it in… to give the server a breath
jQuery(function() {
jQuery('.tdb-head-search-form-input').on('keydown', function(e) {
if (typeof debounce_do_ajax_call === "undefined") {
console.log('tdbSearch.do_ajax_call override');
tdbSearch.original_td_do_ajax_call = tdbSearch.do_ajax_call;
// as hacked out of context, needed to hook context or debounce would trigger on each call
debounce_do_ajax_call = debounce(tdbSearch.original_td_do_ajax_call, 1500)
tdbSearch.do_ajax_call = debounce_do_ajax_call
}
});
});
// https://davidwalsh.name/javascript-debounce-function
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) func.apply(context, args);
};
};
Hi Calin,
I was very busy with migrating that 140k pages site, so I didn’t take the time to look into this until now.
So I just prettified the script_for_front.js and had a quick look and the fix seams real easy.
somewhere around line 350 I see this
a.jqueryObj.find(".tdb-head-search-form-input").keydown(function (b)
{
if (b.which && 39 === b.which || b.keyCode && 39 === b.keyCode || b.which && 37 === b.which || b.keyCode && 37 === b.keyCode) tdbSearch.set_input_focus(a);
else
{
if (b.which && 13 === b.which || b.keyCode && 13 === b.keyCode) return b =
a.jqueryObj.find(".tdb-aj-cur-element"), 0 < b.length ? window.location = b.find(".entry-title a").attr("href") : jQuery(this).parent().parent().submit(), !1;
if (b.which && 40 === b.which || b.keyCode && 40 === b.keyCode) return tdbSearch.move_prompt_down(a), !1;
if (b.which && 38 === b.which || b.keyCode && 38 === b.keyCode) return tdbSearch.move_prompt_up(a), !1;
(b.which && 8 === b.which || b.keyCode && 8 === b.keyCode) && 1 === jQuery(this).val().length && a.jqueryObj.find(".tdb-aj-search").empty();
tdbSearch.set_input_focus(a);
setTimeout(function ()
{
tdbSearch.do_ajax_call(a)
},
100);
return !0
}
});
looking just on the last few lines
replacing this
setTimeout(function ()
{
tdbSearch.do_ajax_call(a)
},
100);
by that
debounce(
setTimeout(function () {
tdbSearch.do_ajax_call(a)
}, 0),
250
);
first you would need this https://davidwalsh.name/javascript-debounce-function
actually coming from an old version of underscore (it works!)
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) func.apply(context, args);
};
};
this is the actual up to date function on https://github.com/jashkenas/underscore/blob/master/underscore.js
but perhaps underscore can be useful to have in such a project
I see here that _.debounce requires _.delay who needs restArguments
this could be the “light” way that does the trick too
_ = _ || {};
_.debounce = function(func, wait, immediate) {
var timeout, result;
var later = function(context, args) {
timeout = null;
if (args) result = func.apply(context, args);
};
var debounced = restArguments(function(args) {
if (timeout) clearTimeout(timeout);
if (immediate) {
var callNow = !timeout;
timeout = setTimeout(later, wait);
if (callNow) result = func.apply(this, args);
} else {
timeout = _.delay(later, wait, this, args);
}
return result;
});
debounced.cancel = function() {
clearTimeout(timeout);
timeout = null;
};
return debounced;
};
_.delay = restArguments(function(func, wait, args) {
return setTimeout(function() {
return func.apply(null, args);
}, wait);
});
// Some functions take a variable number of arguments, or a few expected
// arguments at the beginning and then a variable number of values to operate
// on. This helper accumulates all remaining arguments past the function’s
// argument length (or an explicit startIndex), into an array that becomes
// the last argument. Similar to ES6’s "rest parameter".
var restArguments = function(func, startIndex) {
startIndex = startIndex == null ? func.length - 1 : +startIndex;
return function() {
var length = Math.max(arguments.length - startIndex, 0),
rest = Array(length),
index = 0;
for (; index < length; index++) {
rest[index] = arguments[index + startIndex];
}
switch (startIndex) {
case 0: return func.call(this, rest);
case 1: return func.call(this, arguments[0], rest);
case 2: return func.call(this, arguments[0], arguments[1], rest);
}
var args = Array(startIndex + 1);
for (index = 0; index < startIndex; index++) {
args[index] = arguments[index];
}
args[startIndex] = rest;
return func.apply(this, args);
};
};
Perhaps you all ready have underscore? but didn’t spot it in that js
… it’s got nice goodies and comes handy 🙂 (17.6 KB not so bad ?)
hope this comes helpful, have a nice day.
oups editing code here is dangerous ö
If you change your instagram id information, the problem is solved. Your photos appear. The counter automatically detects.
Example: karsacliadam is wrong. karsacliadam/channel is true.
When I visit some amp version url of my site, the internal links does not appear as amp, they load the non-amp version…
Hi Vlad, could you be so kind and provide step by step instruction how to implement cloud tamplate for audio post (based on soundloud)? I’ve read an doc, but it explain nothing.
Its because you are checking the desktop version, im talking about the mobile version. Please check a AMP page on mobile, push the logo and you will see a blue flashing box.
Hi,
I’ve checked again, this time your header logo and footer amp too and for me is not appearing that blue flash.
Make sure that you test this on google amp -> https://www.screencast.com/t/dWY71RJAT
Thank you!
Hi there
I can’t seem to change the single post templates. If i change the template in the main theme setting, or on the single post itself, i can’t seem to get it visible on the site.
https://lm.lentus.com/hamburg-sud-polar-ecuador/
This is one example. Can’t change anything in the layout Do i need to activate the TD composter for posts aswell or something?
Hope to hear from you.
Hello – I see this response is from an old post, and I wanted to see if there has been any updates. I would also like to change the format of Related Articles (for example, using the format from TD Composer – Flex Block 1). Is there either a way to do this in the Theme Panel, or is it possible to insert a block at the end of each post using TD composer and pull in related articles? Please let me know, thank you.
Hello, can you suggest a way for us to hide the hamburger menu in the mobile view?
Here is an example from our website:
https://yesterdaysamerica.com/
Thank you,
Carlos
Hello, i want to disable 1 category from list new post. How i can make this?
Example: http://prntscr.com/pefm7k
I get the following message when trying to activate the Mobile Theme plugin(and the AMP plugin activated fine):
Warning: require_once(Mobile_Detect.php): failed to open stream: No such file or directory in /var/www/wp-content/plugins/td-mobile-plugin/td-mobile-plugin.php on line 51
Fatal error: require_once(): Failed opening required ‘Mobile_Detect.php’ (include_path=’.:/opt/remi/php72/root/usr/share/pear:/opt/remi/php72/root/usr/share/php:/usr/share/pear:/usr/share/php’) in /var/www/wp-content/plugins/td-mobile-plugin/td-mobile-plugin.php on line 51
Hi, Vlad. Those controls do not exist on the element selected. We are trying to edit a Column Title element with hyperlink references. I see there are controls to change the Title Color and the Hover Color, however, neither is working on the elements selected.
Here is an example of the detail entered in the Text Title box:
Perhaps I need to define the color within the Text Title box itself?
Hello, I am modifying the “Journal” demo. But I have two problems.
1) The post uses a Single Cloud Template of “Journal”. In the tagDiv Composer, the sidebar (profile, recent posts, etc.) can be seen, but not on the actual page. I don’t know why at all. (for example : http://keepmind.net/alexs-10-minute-salmon-sandwich/)
2) In a Category Cloud Template of “Journal”, I can’t change the appearance of the post list. I want to modify the list like http://keepmind.net/ (main page). How can i change them?
I’m new to WordPress so I hope you can explain it as easily as possible. Thanks 🙂
Thanks for the code. Fixed.
Im not talking about the logo in the footer on AMP. Im talking about the header logo on AMP. There i see the blue action flash. I wanna remove that.
Hello,
Unfortunately for the moment the menu on amp can not be change, sorry!
If you want to remove the “Volg ons” from amp and change the color, please use this custom css
.td-footer-social .block-title{
display: none;
}
.td-related-title, .td_module_mob_1 .entry-title a{
color: #001f59;
}
Also the amp logo look just fine -> https://www.screencast.com/t/EdiO1mGXS
Thank you!
Hi,
I now have google hitting me 50k /day on this type of urls
“https://www.welovetennis.fr/us-open/https :/www.welovetennis.fr/atp/atp-zhuhai”
Would be nice if had a look at the source of the page
https://www.welovetennis.fr/us-open/
and tell me if this does come from your theme or is it I should look elswere
To me it looks like I didn’t pick the right choice for the header (I based myself on cloud template model 3) and I would be better off using the “builtin” headers
I’m considering switching to Style 5
would that take all this json/js out of the way ?
to me it seems i’ll stay with the problem
the problem is to have href= or src= anywhere in the page (even in js comments it gets picked up) as the crawler scan the text without analyzing it’s structure to hunt for url.
Same happens with anything having //some.form/of/url
Now I have google crawling like crazy 100k pages / day on things we don’t want… getting really hard on the server… and we’ve got better things to ask google crawler to look for…
I have no issue giving you an access if that could help. But perhaps first if you could confirm that it’s the theme and no other plugin would be helpful.
Thanks
suggestions
“brake” anything like src= href= into ‘hr’ + ‘ef’ + ‘=’
or use a global var $hf=’href=’ $sc=’src=’ $ht=’http://’
or easy just all encode base64…
this can limit the problem at low cost (and won’t solve it completely) is the <![CDATA[
<script>
//<![CDATA[
…
<div class=\”td-module-image\”>\r\n <div class=\”td-module-thumb\”>edit<\/a><img width=\”218\” height=\”150\” class=\”entry-thumb\” src=\”https:\/\/www2.welovetennis.fr\/wp-content\/uploads\/2019\/09\/Tsitsipas1959-218×150.jpg\” srcset=\”https:\/\/www2.welovetennis.fr\/wp-content\/uploads\/2019\/09\/Tsitsipas1959-218×150.jpg 218w, https:\/\/www2.we
…
// ]]>
</script>