Jonathan Bossenger
Forum Replies Created
-
According to the GeneratePress docs where this functionality is documented, this could be due to a security plugin that is enabling this setting.
Alternatively, your web hosting provider might be enabling this setting somewhere. I know some managed web hosts include a custom settings file as part of the WordPress install, which could be causing this.
Forum: Fixing WordPress
In reply to: Social Icons Block – unable to change icon background colourAha, interesting, thank you very much for your testing.
I disabled the theme, and reverted to 2023, and the icon background does indeed appear.
Now to figure out why the theme I’m building is disabling that setting. But that’s not your problem.
Thanks
Forum: Fixing WordPress
In reply to: How to add Custom Fields in Block EditorHi @ballt
One way to achieve this would be by building a custom block to render the custom fields and using that block in the site editor. The other way could be using a custom shortcode in your functions.php, and the shortcode block in the single.html template.
For example, here is some code to add a shortcode in my functions.php file, which gets a custom field I’ve set up called
name. In this case, I’m returning the post id and the name value.add_shortcode( 'custom_field_shortcode', 'twentytwentythree_custom_field_shortcode' ); function twentytwentythree_custom_field_shortcode( $atts ){ $id = get_the_ID(); $name = get_post_meta( $id, 'name', true ); return 'Custom Field ' . $id . ' - ' . $name; }Then I added the shortcode block to my single.html template in the Site editor, and add the shortcode to it
[custom_field_shortcode]When the post renders, it gets the custom field from the database and renders it.
Forum: Plugins
In reply to: [Stand With Ukraine] Issue with WordPress WidgetsThanks, @gicolek, I’ll work on getting a fix out shortly.
Forum: Fixing WordPress
In reply to: WordPress 5.9 search block only returns a single resultHi @meushar thanks for the update.
Forum: Fixing WordPress
In reply to: File Name for Date Archive Block TemplateHey @fredhead glad I could be of assistance.
If your question has been answered, we would love if you would mark this topic as resolved in the sidebar. This helps our volunteers find the topics that still need attention and more people will get helped, possibly like you did.
Forum: Fixing WordPress
In reply to: Remove current post from query loopHi @robertfudge
The Post List block, also known as the Query Loop, has an option in the Display Settings that allows you to enable an offset. This offset allows you to exclude the first x number of posts.
In the video below, you can see me clicking through to select the Query block, click on the Display Settings icon, and set the offset to 1, which effectively removes the first/most recent post from the list.
Forum: Fixing WordPress
In reply to: file permissions of a downloadable PDF is changing on its ownHi @hbk123
Can you tell us what the file permissions are when the change happens?
Is there perhaps something being applied to files on your server, perhaps by your web host?
Hi @srd75
If you used an Enable Multisite option that WPEngine provides, I recommend reaching out to their support.
If a table that is needed for multisite was not created correctly, there could be other things missing.
That being said, if you have created the table, it might be that your site’s table prefix, configured in the wp-config.php file is not
wp_. You might need to check that.Forum: Fixing WordPress
In reply to: Seeking delivery scheduling plugin@diligentdev I did a search of any woocommerce add ons that might do this, but they only seem to offer the “chose a delivery slot at check out stage” option.
It should be possible for a developer to build an addon for a delivery slot plugin, that enables this functionality for you.
You could try posting a job on https://jobs.wordpress.net/ or the WordPress freelance developer platform of your choice.
Forum: Fixing WordPress
In reply to: load fonts asynchronously?HI @devrekli
I did a quick online search for “wordpress load fonts asynchronously” and these two results look promising.
https://metabox.io/load-google-fonts-wordpress/
https://css-tricks.com/how-to-load-fonts-in-a-way-that-fights-fout-and-makes-lighthouse-happy/Forum: Fixing WordPress
In reply to: Disable “auto embed” feature when pasting text and linksHi, @mathse good work figuring this out.
There are two changes I would like to point out.
1. The enqueue_block_editor_assets hook is an action hook, not a filter hook, so you would use it like this:
add_action('enqueue_block_editor_assets', 'disable_scripts');2. You have used wp_enqueue_script 100% correctly, this is how we should enqueue scripts or styles in WordPress. The only addition I would make there is to enqueue your script with a dependency.
wp_enqueue_script( 'disable-auto-embed-js', plugins_url( $scriptPath, __FILE__ ), array( 'wp-blocks' ) );What this will do is make sure your script is only enqueued after the wp-blocks script, which powers the block editor.
And one final comment, I would just prefix your disable_scripts function with a unique prefix, this ensures that it won’t conflict with any other function that might be called disable_scripts.
Forum: Fixing WordPress
In reply to: WordPress 5.9 search block only returns a single resultHmmm, that’s strange. I’m using the twenty-twenty-two default theme and my search seems to be working as expected.
Do you have any customizations to your site, either through a child theme or plugins? If you do, can you disable these, and see if the problem persists.
Forum: Fixing WordPress
In reply to: Fatal error admin-header.php on line 62Thanks @dimadin
@draganela once the files are rebuilt, please retest and let me know.
Forum: Fixing WordPress
In reply to: Gallery Image Link Not WorkingAs I’ve mentioned previously, the ability to link an image to a URL the way you have shown me in your screen is not a default WordPress function.
Do you have some code or a custom plugin that is enabling this? I tested EWWW and WP Optimize, and none of these plugins seem to add those fields.
My guess is that whatever is making that functionality possible on the media items, contains the bug.