Ok. But is there also a way to do it in the style.css for the mobile theme? If yes, where I can find it in the style.css?
Greetings Kathrin
The sticky menu is disabled for both (mobile and desktop)… There must be something else in the header to produce the high cumulative layout shift…
What else can cause collabsing of the header?
Greetings Kathrin
At the moment I can’t say if the cumulative layout shift is getting better. Indeed it become slightely better in the mobile version but since two days there is no change anymore. It stays in the orange area. Can there be something else?
In desktop version there is also a cumulative layout shift when scrolling up and down? Is it the same problem (sticky header) as in the mobile version? How can I solve it?
Greetings Kathrin
Ok, but most of the time they are not shown…
Ok. I have a post loop element integrated, but however I can’t get it done that as sitelinks Garten, Rezepte and so on are shown.
Greetings Kathrin
Thanks for the information. I have tried it and will tell you if it works and the CLS gets better in the next days.
Greetings Kathrin
@gmcarlson I have removed the all images in the first viewpoint.
So, after asking, aksing, asking and trying: the problem is the mobile header it collapses when scrolling down and the cumulative layout shift increases. Is there a way to move the mobile menu to the bottom until you have fixed the problem?
Greetings Kathrin
Ok, that’s great! Do you already know when it will be fixed?
Greetings Kathrin
Ok. That’s great. Do you already know, when it will be fixed?
Greetings Kathrin
Thank you very much!!!
Greetings Kathrin
Thanks, but I know the path to find the style.css for mobile. But I don’t know exactly which parameter i should change to really get a bigger Post-Title on mobile. I have already tried H1 and page-title but there was no change in the size.
Greetings Kathrin
Thank you very much.
I have the same problem with the cls. But the LCP you can easy fix by making some changes in the layout, so that there aren’t any images in the first viewpoint…
Greetings
Thank you very much! But isn’t that very problematic to have all the content with pictures in the head of the page? For page speed?
Greetings Kathrin
Ok and how can I comment them out? Or what can I do to prevent them from causing layout shifts?
Greetings Kathrin
Thank you very much, it works! But is there also a way to increase the spacing between the post title and the categories that are shown below the breadcrumbs?
But there is another problem, when I use the css code there – I increase the cumulative layout shift. Is there no way to insert the code in a php-file for the mobile version like style.css?
Thank you very much!
Greetings Kathrin
-
This reply was modified 6 years by
Topfgartenwelt.
font awesome causes –> “flash of unstyled content” (FOUC)
I have already tried this and tried it now again but I the critical error persists and the mobile pages can’t be loaded anymore. When I move the metainfo back into the header it works again.
I just want to move the metainfo for views and author and the comments before the featured image, because they cause in the viewpoint a large cumulative layout shift because of the used font-awesome…
<article id=”post-<?php echo $td_mod_single->post->ID;?>” class=”<?php echo join(‘ ‘, get_post_class());?>” <?php echo $td_mod_single->get_item_scope();?>>
<div class=”td-post-header”>
<?php echo $td_mod_single->get_category(); ?>
<header class=”td-post-title”>
<?php echo $td_mod_single->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings[‘td_subtitle’])) { ?>
<p class=”td-post-sub-title”><?php echo $td_mod_single->td_post_theme_settings[‘td_subtitle’];?></p>
<?php } ?>
//metainfo moved to another position
</header>
</div>
<div class=”td-post-content”>
<?php echo $td_mod_single->get_content();?>
<?php
// meta info after post content
<div class=”td-module-meta-info”>
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false,false);?>
<?php echo $td_mod_single->get_comments();?>
<?php
if ( ! td_util::is_amp() )
echo $td_mod_single->get_views();
?>
</div>
// override the default featured image by the templates (single.php and home.php/index.php – blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
if (TD_THEME_NAME === ‘Newsmag’) {
echo $td_mod_single->get_image(‘td_640x0’);
} else {
echo $td_mod_single->get_image(‘td_696x0’);
}
}
?>
<?php echo $td_mod_single->get_social_sharing_top();?>
</div>
If I delete this part of the code: <div class=”td-module-meta-info”>
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false,false);?>
<?php echo $td_mod_single->get_comments();?>
<?php
if ( ! td_util::is_amp() )
echo $td_mod_single->get_views();
?>
</div>
it seems that the lazy loading in the mobile version doesn’t work anymore…
And after trying to move them on the new position the text under the images in the mobile theme isn’t centered anymore…
If I move the meta-info after the featured image it works: but the text isn’t shown inline..
<article id=”post-<?php echo $td_mod_single->post->ID;?>” class=”<?php echo join(‘ ‘, get_post_class());?>” <?php echo $td_mod_single->get_item_scope();?>>
<div class=”td-post-header”>
<?php echo $td_mod_single->get_category(); ?>
<header class=”td-post-title”>
<?php echo $td_mod_single->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings[‘td_subtitle’])) { ?>
<p class=”td-post-sub-title”><?php echo $td_mod_single->td_post_theme_settings[‘td_subtitle’];?></p>
<?php } ?>
</header>
</div>
<div class=”td-post-content”>
<?php echo $td_mod_single->get_content();?>
<?php
// override the default featured image by the templates (single.php and home.php/index.php – blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
if (TD_THEME_NAME === ‘Newsmag’) {
echo $td_mod_single->get_image(‘td_640x0’);
} else {
echo $td_mod_single->get_image(‘td_696x0’);
}
}
?>
<?php echo $td_mod_single->get_social_sharing_top();?>
</div>
<div class=”td-module-meta-info”>
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false,false);?>
<?php echo $td_mod_single->get_comments();?>
<?php
if ( ! td_util::is_amp() )
echo $td_mod_single->get_views();
?>
</div>
<footer>
Greetings Kathrin
-
This reply was modified 6 years by
Topfgartenwelt.
Yes, I know, but that doesn’t work for the MOBILE THEME. How can I do this in the mobile theme. There is also a style.css – where I can increase the spacing there for the H1 and the breadcrumps?
Greetings Kathrin
When I use font-display: swap; for the Desktop-version, my mobile theme doesn’t work correctly anymore. What is the reason therefore?
Greetings Kathrin
This link contains no information đ
Greetings Kathrin
Can I use the same code for this font and where I can find it in the Desktop-Version:
wp-content/plugins/td-composer/assets/fonts/font-awesome/fontawesome-webfont/woff2?v=4.7.0
Greetings Kathrin
Thank you very much!
Thank you!