bvbaked
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Theme menu edit error – “fatal error” and “warning”I wouldn’t expect you to need to increase the execution time for this and this type of error probably hints as something bigger going wrong.
If the email didn’t send, the PHP may not be working to send it, but maybe it logged an error at least? You can use this guide on debugging if needed to help narrow down the issue by seeing if you can get an error message. It is also possible your host can provide this information as well
Forum: Fixing WordPress
In reply to: Problem when changing Text in a Text BlockUnfortunately this would likely be a theme issue, which may need a code solution.
Is your theme called Themeforest or is it a theme from Themeforest? I’m only aware of the theme retailer and nothing came up in a search for it
Forum: Fixing WordPress
In reply to: How do you add a class to the wysiwyg Dropdown?See if this works for you https://codex.wordpress.org/TinyMCE_Custom_Styles
I think it is what you’re asking for and would add specific selectors to the format tab. The Header 2/3, paragraph etc.. you mentioned controls the elements, which is not the same as adding a class or style and as far as I know they have all the elements you would want already covered
Forum: Fixing WordPress
In reply to: How to Overlap Images?Image 2 over Image 1 is expected. Unless you use a z-index property, whichever is later in the markup will be above the earlier. The margin is only used to move one into the space of the other and that doesn’t control the layering
While I’m not certain of how you’re doing it, the error is likely due to manual content that is not accounted for in the save function. What is saved in the database will need to match what is in the editor so if you’re adding it directly to a block it can cause issues. That CSS is best added somewhere else, and you can target your layout by including a class selector instead of directly editing the blocks
- This reply was modified 8 months ago by bvbaked.
Forum: Fixing WordPress
In reply to: Intermediate image sizes missingIt is possible that the sizes are created but the file is not. This might happen if you created a size after an image was uploaded. These are not retroactively built out. In the metadata for the attachment, it will list the sizes it has created and the path to the cropped image. So yeah, if you are missing a cropped image and the theme or layout is looking for one it won’t find a source. How the theme/plugin handles this case would be up to the developer so if there is no fallback then you may get blank images
I would recommend you try a plugin that rebuilds thumbnails. This can ensure you have all the crop sizes you need
Some things to consider:
- If it is a server problem then it may be the directories are not writable. This should be easily tested by uploading an image. You should also get a notice in the media library
- If your image is too small, larger crops may not generate since it is bigger than the image. You’ll need to double check this isn’t a problem or possibly upload a bigger image if needed
It is possible with some JavaScript and a query parameter – something like – http://www.your-site.com?menu=the-one-to-open
It does depend a lot on your theme on how it would have to be added, so there is no example code that could be given without a link
Forum: Fixing WordPress
In reply to: Problems with Changing ThemesJust to chime in here, unfortunately I can tell you that ordering posts by category is not quite as simple a task as it would seem. As a feature that introduces new functionality, this is also more likely to be found in a plugin rather than a theme – themes are intended to modify how a site is displayed without changing, adding, or removing features.
That isn’t always the case, but it will likely be difficult to find a theme that does this. I’d say you are better off keeping your theme and looking for a plugin that may help. I don’t know any off-hand, but perhaps someone in the community knows of one?
Forum: Fixing WordPress
In reply to: Site crashes with php 8.1The site works for me with this theme using PHP 8.3, so I suspect there is a plugin at fault.
The narrow display is typical of an error, although in cases like this there isn’t usually a nice message that helps diagnose what is happening. If you could enable debugging and check the logs that would help narrow down the problem
This may just require updating WordPress and plugins as well for versions that support PHP 8
Forum: Fixing WordPress
In reply to: Critical Error issue after PHP upgrade; can’t access my siteCan you check the error log for any error messages, turning debugging on if it is off, to narrow the error down? It may just be one causing an error that you can update or deactivate to get admin access and update the rest.
Unfortunately, updating from PHP 7 to 8 can cause some problems as there are functions that no longer exist. I suspect a theme, plugin, or your core WordPress version has one of these and will need to be updated. It is possible to manually update both if you have access to ftp or WP CLI (which I prefer) – check out the core, plugin and theme commands here.
Both a user name and an email are required, however they do not need to be the same. You can choose to login using either, and you are allowed to change emails but not user names.
So, if users are registering with the same email for both this is the possibility however the login should still work with either. On a side note, if the users are having emails blocked it is not likely due to their entered email. This would suggest something else that is flagging your emails are “spam” even though they aren’t. Some possibilities are that the domain and sending email are not the same, or possibly the service you use to send them. Having the emails sending now might just mean they used a more forgiving email client but that isn’t really solving the problem
Forum: Fixing WordPress
In reply to: Hours Plugin For PagesI don’t know exactly how this is setup, but to explain a common pattern:
Each business could be a custom post type, and the page that displays them all could use that post type’s archive template. On that post type you could add a custom field that is pulled from each to display for each business within that loop.
There are many plugins that allow for custom fields to be added, one that I have used a lot is Advanced Custom Fields but there are many others as well. To display a real time open/closed you’d need to write a bit of code to check the current time vs the set hours, but just a displaying them is fairly straightforward and they have plenty of documentation on how to do so if you’re comfortable with making code edits
Is there something out of the box to handle all of this instead? You might want to compare the options in this list – I have not used nor can I vouch for these options but the ratings should speak for themselves. It would depend on your site which one makes sense to use in your case
Hope that helps!
Forum: Fixing WordPress
In reply to: Pagination links disappeared on category and tag archive pagesCan you clarify what you mean by ‘single pages are not affected’ – those should not have pagination on them since a single page is showing only one post and not a query that could have multiple pages.
Maybe you are referring to the previous and next links instead? Those would not show on an archive page since these are not posts in the same sense and there is nothing before or after them for these links to populate. You’d likely still see the placeholders for them, but with nothing to show they wouldn’t appear when viewing the archive
I think you may want the pagination block instead, which is only available as a child of the query block. Maybe there is just a confusion between the two? I see an empty group after your grid so it could just be the wrong block got added, but if that is not the case then maybe something else is going wrong here
Forum: Fixing WordPress
In reply to: Taxonomy disappears when I use manage_{type}_posts_custom_columnTry referring to this comment that shows an example of a taxonomy in a column
A blank column makes me think that the data is just in the wrong format. You may need to add a hook to fine tune the output
I will not claim to be a React or Gutenberg expert, but my first thought is you’d have to try and register the variation through JavaScript and try and manage the context
This seems to deal with a lot of custom block examples, but provides an example of passing context. I can’t confirm this would work, or if it applies to core blocks the same way, but this feels like the way it would need to be managed. The blocks need to know which block they are in (the context) and what variations it is intended to show
That could be a very poor example as well, but this article on React context illustrates the concept, and maybe the parent block is available to pass along to its children? If that works, then the variations would be shown on conditional logic, although I don’t know if you can remove the default option
Option A: This is some grey area if you want to strictly follow the WordPress philosophy of theme adding only functionality. This feels like a feature that may belong in a plugin, but I’m sure there is plenty of opinions to debate this. I think that is fine, but can be cumbersome to always be defining it
Option B: You can certainly write a CSS rule to manage this, and edge cases could be defined via a block style. I’m sure there are plenty of arguments around this as well, but I would look at this as my preferred/suggested solution. You can define specific values or ranges via theme.json to set the padding and remove it on mobile for those edge cases for example.
Option C: I don’t think there would be anything in theme.json to target the blocks you want that would do a better job than Option B, but someone else may have a solution to suggest
These are just my thoughts, personally I think Option B is the best and should suffice while keeping close to the “proper” way of doing it