Cannot find or edit main homepage for site?
Cannot find or edit main homepage for site?
Cannot find or edit main homepage for site?
Create a Query Loop block
It works without any problems for me. It looks like something (a plugin or theme) is using the same classes, which is overriding your CSS classes. Try wrapping your classes or update the classnames for testing. .xyz-sidebar { grid-area: sidebar; } .xyz-content { grid-area: content; } .xyz-header { grid-area: header; } .xyz-wrapper { display: grid; … Read more
The main problem is a misunderstanding of PHP objects and the 2 methods you’re using: $a = get_posts( … ); $b = new WP_Query( … ); $a is an array of WP_Post objects e.g. foreach ( $a as $p ) { … } $b is an object of type WP_Query e.g. while ( $b->have_posts() ) … Read more
This checks the number of characters and hide the button server-side in content.php: <?php $excerpt = get_the_excerpt(); $excerpt_length = strlen($excerpt); $excerpt_limit = 100; // Match the limit set in functions.php // only for debugging: var_dump($excerpt); var_dump($excerpt_length); ?> <div class=”news-main”> <?php the_excerpt(); ?> </div> <?php if ($excerpt_length >= $excerpt_limit) : ?> <div class=”news-read”> <a href=”<?php echo … Read more
To remove the sizes and srcset attributes (along with their values) from <img> tags in your blog posts using WP Migrate DB Pro’s Find and Replace feature with regex, you can use the following approach: Regex Solution Use this regex pattern in the Find field to match and remove both sizes and srcset attributes, including … Read more
How to remove all CSS hierarchy inserted by the single post of a custom post type – WordPress
1 certain category not showing up
This won’t work as you expect it, PHP is intended for server rendered blocks, it isn’t aware of the editor context unless it’s told the context. But to do that you need to read it in and pass it to the component on the JS side, and then read it in again on the PHP … Read more
WordPress doesn’t support this out the box so you’d need to know how Tex support is implemented on that blog. Looking at the raw HTML suggests tex2jax_ignore which heavily implies Mathjax is being used. A quick look at Math stack exchange suggests they’re using MathJax v2.7.5. Having said that, Stack exchange doesn’t use HTML the … Read more