demonboy
Forum Replies Created
-
Forum: Plugins
In reply to: [wpForo Forum] Mobile supportSure thing, thank you.
Forum: Plugins
In reply to: [bbPress Notify (No-Spam)] We need to convert your bbpnns v1.xThanks. I used to use this plugin years ago and have since uninstalled it. I guess these are just entries left over from that installation.
Forum: Fixing WordPress
In reply to: Dark Mode, a question of styleThis is useful, thank you. Do you have a link to see this in action, or is this a dev site?
Forum: Developing with WordPress
In reply to: HTML block themes – how to handle dynamic content?Further to this and the useful thread @threadi provided, I ended up using a plugin to solve this issue. I didn’t want to go down the plugin route, but the few hard-coded solutions I tried continued to cause headaches. However, it seems the 5* Meta Field Block plugin is well-coded and light, written by an active developer who offers great support. If you are hitting the shortcode in a query loop issue (by default, shortcodes run after the loop has run and therefore miss things like post ID), then this plugin is essential.
Doh! Can’t believe I missed that. I’m new to ACF, so I appreciate the feedback. Thank you. Once again, great plugin, @mr2p
Forum: Developing with WordPress
In reply to: HTML block themes – how to handle dynamic content?Hi @threadi Thanks for getting back to me. I had come across this issue already and was trying to avoid shortcodes, but it seems the only solution. How this is still a bug since 2022 is pretty bad. I will endevour to find a solution in the comments. Cheers.
Forum: Fixing WordPress
In reply to: Blog home display different post types differently (block theme)Thank you @rocketslide01 I was just writing this update to my OP:
Further to this, I notice one option is to use a query loop, which I believe I can do in the backend (haven’t tried it yet). However the recommendation is to use categories to define the different post types. I don’t want to do this. Instead I want to use custom fields but it seems I then have to install a plugin so the block editor can handle these custom fields, which I also want to avoid. One thought is to use a tags instead.Forum: Fixing WordPress
In reply to: 100% width x3 images, 75% height screen size, different ratios@bcworkz thanks for the reply. I think I am making progress with this in terms of injecting php via shortcode, but still working on vertically aligning the images. Cheers.
Forum: Fixing WordPress
In reply to: 100% width x3 images, 75% height screen size, different ratiosFurther to this issue, I’m testing on a standard WP gallery as it renders better on different screen sizes (I’ll deal with dynamically injecting the images from the post later). However, one thing I’m struggling with is to vertically align center the three images. I can’t see a setting within the gallery setting itself, and I have tried forcing this using something like:
body .wp-block-gallery.has-nested-images.is-layout-flex.wp-block-gallery-is-layout-flex {
align-items: center !important;
}I’ve tried this without ‘body’ to taget the gallery directly, and tried on ‘figure’ as well, but whatever I do, I can’t seem to force the vertical alignment.
Also I tried applying a custom class to the gallery block with:
.v-align-gallery .blocks-gallery-grid {
display: flex;
align-items: center;
}But this doesn’t work either. I’m wondering if I need to wrap this block in something and apply the vertical align center property to that.
I am using twentytwentyfour as my parent theme.Any further thoughts?
Forum: Fixing WordPress
In reply to: 100% width x3 images, 75% height screen size, different ratiosHi @bcworkz
I realise I’m going to have to compromise on the same-height requirement, so I’ve scrapped that. I have achieved most of what I want using columns but need some overrides in the CSS for small screens. See my current work-around in my reply, above.
Forum: Fixing WordPress
In reply to: 100% width x3 images, 75% height screen size, different ratiosHi @threadi
By html template I mean a block-based theme. I’m working on single.html. One of the issues I’m facing is that the image source is dynamically generated. As a work-around I have used columns and shortcode, where the shortcode pulls the dynamic img src. I apply a custom CSS selector to the columns and then modify my CSS with
.equal-height-images img {
height: 75vh;
width: 100%;
object-fit: contain;
}This means I lose the same height for the images but I think I have to compromise on this. I’m now trying to work out how to avoid big gaps between the images when viewed on a small screen. I don’t think I can use the gallery option unless there is a way of injecting PHP to the img src?
Forum: Fixing WordPress
In reply to: Google Adsense alternative for placing ads on my websiteYes, thank you. I signed up shortly after posting this! There’s a little learning curve but seems pretty streamlined. Let’s see how we get on with that.
Cheers.
Thank you. Not to worry, I suspect this is something I could solve with a bit of time, but in the short term it’s not high priority. Thank you for the pointers.
Hi. My apologies for not replying sooner, I’ve been away.
Thank you for the response. I think in this instance I will direct my client to remove instances of ‘the’ in the title and see how that goes. I am not sure it is posible to rank the results by slug. The only options I have are alphabetical or newest/oldest.
Why does the Jetpack app still use XMLRPC? I understand backwards compatibility but shouldn’t it priritise RestAPI if XMLRPC is switched off? By forcing XMLRPC, you are opening up the wordpress installation to vulnerabilities.