janet4now
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Can’t change default Gravatar imagemaybe change the file type to a png instead? Just to test and then use this code
function custom_default_gravatar($avatar_defaults) { $new_avatar = 'https://www.bansteadlocal.co.uk/wp-content/themes/my-listing-child/images/profile-user-avatar.png'; $avatar_defaults['default'] = $new_avatar; return $avatar_defaults; } add_filter('avatar_defaults', 'custom_default_gravatar');
Forum: Developing with WordPress
In reply to: Can’t change default Gravatar imageare you sure that the path to the image is correct that you are using?
Forum: Developing with WordPress
In reply to: Difference between useEntityProp and getEditedPostAttributeYes, that’s correct. The
getEditedPostAttribute
function returns the unsaved changes if they exist, and if there are no unsaved changes, it returns the attribute from the last known saved state of the post. So it does take into account unsaved edits when returning the data. TheuseEntityProp
hook andgetEditedPostAttribute
function can return different results if the data has been updated in the block editor but not yet saved. In that case,useEntityProp
will return the updated value, whilegetEditedPostAttribute
will return the last saved value.Forum: Developing with WordPress
In reply to: Difference between useEntityProp and getEditedPostAttributeIn most cases, the two methods return the same data, as they both retrieve the current (possibly unsaved) state of the object. However, there may be some cases where the two methods do not return the same data, for example if the data has been changed but not saved in the block editor,
useEntityProp
will return the updated value, whilegetEditedPostAttribute
will return the last saved value.When I resize the browser there is lots going on there with things disappearing, etc.
I don’t know which section you’re working on specifically. But margin with “auto” left and right usually creates equal spaces; So if you have a width of 78% if would be something like
width: 78%;
margin: 0 auto;Forum: Developing with WordPress
In reply to: Can’t change default Gravatar imageThis issue occurs because the default gravatar image URL is not being correctly passed to the Gravatar service.
You can resolve this issue by changing your code to set the
default
parameter to the URL of your custom avatar image.Here’s the updated code:
function custom_default_gravatar($avatar_defaults) { $new_avatar = get_stylesheet_directory_uri() . '/images/profile-user-avatar.svg'; $avatar_defaults[$new_avatar] = 'Custom Gravatar'; return $avatar_defaults; } add_filter('avatar_defaults', 'custom_default_gravatar');
Forum: Developing with WordPress
In reply to: Page Breaks- Install a plugin: There are many plugins available that allow you to insert page breaks in your WordPress content. Some popular ones include Page Break Block and TinyMCE Advanced.
- Insert a page break tag: Once you have installed the plugin, you can insert a page break in your content by using a page break tag. The tag will vary depending on the plugin you have installed, but it usually looks something like
<!--nextpage-->
.
Forum: Developing with WordPress
In reply to: Langsame Rest Api nach UpdateThere are a few potential solutions that you could try:
- Update your plugins: Make sure that you have the latest versions of both the WPML plugin and the Events Calendar plugin installed.
- Disable plugins temporarily: Try temporarily disabling any plugins that are not essential to your site to see if one of them might be causing the slowdown.
- Optimize your database: If you have a large number of posts and events, your database may need to be optimized to improve performance.
- Check server resources: Make sure that your server has sufficient resources to handle the API query. If it’s a shared hosting environment, consider upgrading to a dedicated server.
- Debug the issue: Finally, you can try using the Debug Bar plugin or similar tools to debug the issue and determine exactly what is causing the slowdown.
- This reply was modified 1 year, 9 months ago by janet4now.
Forum: Developing with WordPress
In reply to: Events ManagerWell if you can share a link to a page with the location option there, maybe css can help make it disappear.
Forum: Fixing WordPress
In reply to: blank white page after update to 6.1.1I only see a couple of errors where your favicon files are not being found. Are all plugins and your theme updated to the latest versions?
Do you have a backup, or can you contact your host to revert to a recent backup?Forum: Fixing WordPress
In reply to: blank white page after update to 6.1.1in your OP you said you added code to the config file. No worries.
Is the white screen only happening when you try and edit a page but the site is loading fine for visitors? Can you share your url?
This page has some suggestions if you want to try https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/- This reply was modified 1 year, 9 months ago by janet4now.
Forum: Fixing WordPress
In reply to: Media LibraryWe can’t see inside your admin without logging in.
You can’t see any images when you look in your media folder? Are you displaying by list or image?- This reply was modified 1 year, 9 months ago by janet4now.
Forum: Fixing WordPress
In reply to: blank white page after update to 6.1.1what did you add to the config file?
what version of php are you running?
Can you check if you have any errors?I would just delete the entire folder then add it back. Just me. Everyone has their opinion.