@Amit thanks it works perfectly!
Maybe you can also help me with this topic: in your guide speed up newspaper theme you say that the multipurpose style should be deactivated in the mobile theme:
// Remove Multi Purpose Style
add_action( ‘wp_enqueue_scripts’, ‘infophilic_remove_multi_purpose’, 20 );
function infophilic_remove_multi_purpose() {
wp_dequeue_style( ‘td-plugin-multi-purpose’ );
}
I have installed the mobile theme and see the multi purpose style in the theme panel, can I deactivate nevertheless?
Greetings Kathrin
So I have to install the plugin, disable the view count and than delete the plugin?? That seems a little bit weired.
In the following path: /wordpress/wp-content/plugins/td-composer/mobile I found the following code:
// posts view count with ajax
if( td_util::get_option(‘tds_ajax_post_view_count’) == ‘enabled’ ) {
// ajax get & update counter views
if( is_single() ) {
if( $post->ID > 0 ) {
td_js_buffer::add_to_footer(
‘jQuery().ready(function jQuery_ready() {
tdAjaxCount.tdGetViewsCountsAjax(“post”,’ . json_encode(‘[‘ . $post->ID . ‘]’) . ‘);
});’
);
}
}
}
Isn’t it possible to comment that part of code out? I don’t wont to install the standard pack because it slows down the theme extremely.
Greetings Kathrin
-
This reply was modified 5 years by
Topfgartenwelt.
Ok, yes I’m using the mobile theme. And which part of the code I have to mark, can you please help me a little bit?
Thank you very much!
I have disabled the AJAX View Count in the themepanel but it didn’t disappear on the posts in the mobile theme. It’s still there. I haven’t installed the standard pack. Is there another way (for example in the code) to disable the AJAX View Count in the mobile theme? The view count doesn’t appear in the desktop theme.
Greetings Kathrin
-
This reply was modified 5 years by
Topfgartenwelt.
Thank you for the input. @Amit should the code added to the following directory:
/wordpress/wp-content/plugins/td-composer/mobile
Greetings Kathrin
But one question – I have extended the support, is there another step to do in this forum, or it is just ok buying it?
Greetings Kathrin
Everything ok – I found it 🙂
Dear Calin, the CLS seems to be gone.
Greetings Kathrin
Thank you very much, but it seems that the CLS is slightly going down just by removing the smart sidebar in the themepanel.
Greetings Kathrin
Thank you very much! So I just have to change enabled to disabled?
Greetings Kathrin
Dear Vlad, the sticky header has to be deactivated in the Javascript File for the mobile ans Desktop Version. So wäre I can find the smart sidebar in the code?
To comment out some piece of Code ist no Option that is Something that is possible every time…
Greetings Kathrin
I have deactivated the smart sidebar in the themepanel and the measuring tool shows no CLS issue anymore, but although the score doesn’t get any better. Is there a way to deactivate the smart sidebar in the code like the deactivation of the sticky header?
Greetings Kathrin
I don’t understand what you mean 🙁
Greetings Kathrin
Thanks for the information with the smart sidebar. This one was activated in the themepanel. Now I have deactivated it and it seems that there is no CLS in the measuring tool anymore. I will monitor the score in the next few days and hope that this was the last issue with the new Web Core Vitals from Google 🙂
Greetings Kathrin
Thank you very much!
Greetings Kathrin
I don’t use a separate caching-plugin because I have a serverside cache and another plugin would cause problems.
Greetings Kathrin
Dear Calin, the stick-option wasn’t enabled. Is there another way to remove that effect? If I do nothing I get really bad ranking problems… I have created the sidebar with the td-composer and used a template for it. In the themepanel there is only activated default sidebar.
Greetings Kathrin
-
This reply was modified 6 years by
Topfgartenwelt.
To get the text-logo in the mobile version in the middle I have added margin-top: 70px; to td-logo-text-wrap and the height in the td-logo-text-wrap to 180px
To get the search-button from left to right: .td-search-icon –> instead right: -3px; change to left: -3px; and add margin-top: 60px; so the search button moves below the toggle or to move the search icon beside the toggle just right: 210px;
To change the font-size of the text-logo and the the tagline –> use theme-panel because the following in the style.css doesn’t work:
.td-main-menu-logo .td-logo-text –> font-size from 24px to 48px
.td-main-menu-logo .td-tagline-text –>padding-top from 2px to 6px and font-size from 9px to 15px
Changes in the themepanel: mobile –> theme-fonts –> header –> text-logo –> size: 34 line hight: 34
Than change the header .entry-title margin-top: 25px and margin-bottom:65px
-
This reply was modified 6 years by
Topfgartenwelt.
Is there no way do to this in the mobile header.php and in the style.css?
In the style.css –> td-header-wrap –> change height from 60px to what you want 🙂 So I have a bigger size, but how and where in the style.css I can achieve that the text-logo moves to the middle/center of the box?
Greetings Kathrin
-
This reply was modified 6 years by
Topfgartenwelt.
Can you recommend a plugin for webstories?
Greetings Kathrin
Dear Calin,
I’m using the same AMP-Version as you (that one which comes with the theme and the version 1.5.5). For the web stories I’m using the Google Plugin:
Web Stories
Deaktivieren
Visual storytelling for WordPress.
Version 1.0.0-beta.1 | Von Google | Details ansehen
Version: 1.0.0-beta.1
Autor: Google
Zuletzt aktualisiert: vor 2 Wochen
Erforderliche WordPress-Version: 5.3 oder höher
Kompatibel bis zu: 5.4
Erforderliche PHP-Version: 5.6 oder höher
Greetings Kathrin
Thank you very much! I know that an arrow opens a drop-down-menu but on the first marked option gradient there is none 🙂 If I use the hide option in the css menu there is nothing shown no svg image and no text. So I used the option under the general options –> hide text and this seems to work.
Greetings Kathrin
Dear Calin, here you can find the screenshots how I embed the webstory: https://www.topfgartenwelt.com/web-stories
Greetings Kathrin
Dear Calin, here is the link with the screenshots: https://www.topfgartenwelt.com/svg-logo
Greetings Kathrin
Thank you!