Ray
Forum Replies Created
-
Forum: Plugins
In reply to: [teachPress] Single Page PublicationsHi,
I’m not sure if you’ve solved this problem of your’s? I was interested in doing the same thing and was playing around just now.
I figured out that the number of entries per page is defined in the variable
entries_per_pageas 50. It is located in a few placesteachpress/core/shortcodes.phpandteachpress/core/general.php. One thing you could do is just increase this value. I presume one overrides the other, so I just played around now and changed them all; of course, it’s better to find out which shortcode you’re using, etc. and just change that one.
Alternatively, there is the variablepagination, which you could try switching to “off” (0). I guess this would work as well.Hope this helps!
Ray
Forum: Fixing WordPress
In reply to: Error when uploading a PDF fileHi @contentiskey ,
Thanks a lot for your reply! I actually didn’t try any other PDF, but I did try the PowerPoint file which the PDF was generated from (which was even larger), and that was being rejected.
However, I tried your solution and it solved my problem! Thank you very much for your help! I was at a lost about what else I could have done with the server’s and WordPress’ settings…
Ray
Forum: Fixing WordPress
In reply to: Error when uploading imagesI was just having this problem today. Besides the suggestions so far, you might want to upload a smaller image. You can reduce the dimensions of the figure, but if you are uploading a png file (for example), try converting it to jpg format first. That is a lossy compressed format that will give a smaller file. Probably no noticeable difference from png for the “average” person.
Forum: Fixing WordPress
In reply to: Removing space around blocks (Block Editor)Hi @mrtom414 ,
Thanks for the explanation — I understand now! The handbook link was also very useful. Thank you for posting it!
Ray
Forum: Fixing WordPress
In reply to: Removing space around blocks (Block Editor)Hi @mrtom414,
Thanks for your follow-up reply! By editing the theme.json files, I presume you meant going to “Tools | Theme file editor” and then maybe “Theme Styles & Block Settings” on the right? When I first encountered my problem, I did get as far as looking at this, but I didn’t know what was the “right way” to do things.
I think FSE is still relatively new and, unfortunately, when I’m searching for information with Google, I’m picking up a lot of older information that might no longer be relevant. I’ve only recently started editing in WordPress (previously, I was only responsible for administration of the underlying computer), so seeing older information lying around has actually confused me. More recently, I’m trying to focus my attention on only dated information, and only those from the past year.
Anyway, thanks for your advice — I will pay more attention to theme.json from now on, as well as read more about it if that’s the direction WordPress seems to be heading.
Thank you!
Ray
Forum: Fixing WordPress
In reply to: Removing space around blocks (Block Editor)Hi @contentiskey,
Thanks for the list of your learning resources! I’ll be sure to bookmark them myself!
Ray
Forum: Fixing WordPress
In reply to: unable to set permalink post-site migrationHi @chrisjscott,
Is that your entire conf file? I think you need to add something in order for Apache to make use of the .htaccess files.
I’m not sure if you’re using Ubuntu, but I have it bookmarked so it is handy for me. i.e., https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-22-04-with-a-lamp-stack
I think you need:
<Directory /var/www/wordpress/> AllowOverride All </Directory>I think I have followed these instructions before to set up my system. If you are using Ubuntu, perhaps you can go through it as sort of a checklist.
I can’t see anything obviously wrong with your conf files. However, personally, I don’t have any RewriteEngine or RewriteRule in my conf file. It’s all in my .htaccess file (that’s written by WordPress when I choose permalinks; I didn’t edit it).
Hope this helps!
Ray
Forum: Fixing WordPress
In reply to: Removing space around blocks (Block Editor)Hi @contentiskey ,
Sorry to bother you but just wanted to let you know that I found the solution to my problem: https://wordpress.org/support/topic/how-to-get-rid-of-blockgap-in-first-and-parent-wp-block-group/ .
Once I had the name of the class that was causing me problems, I was able to search for it with Google within our forums. Turns out the Group that contained the Block was adding space above. (I was also confused whether it was the menu adding space below or the body adding space above.)
Thanks a lot for your reply! It helped me figure out what to look for and what not to look for. So many options to wade through…it’s a bit overwhelming.
Thanks again!
Ray
Forum: Fixing WordPress
In reply to: Removing space around blocks (Block Editor)Hi @contentiskey ,
Thanks a lot for your reply! I didn’t realise it was just a URL like that! Thank you!
As for your second point, I’m starting to understand what’s going on. With the test paragraph block (which I’ve now erased after playing with them), I found the DIMENSIONS controls that you’re talking about and they do exactly what you say. It seems not everything has these controls. For example, the slider on the page (which is still there) doesn’t have them.
However, I realised that my whitespace problem wasn’t just solely because of this whitespace around the blocks. Thanks to Firefox’s Inspector, it seems that every one of my pages has this line of code:
<main class="is-layout-flow wp-block-group" style="margin-top:var(--wp--preset--spacing--50)">which is adding whitespace between the navigation menu and the body of the page. I’m not sure which part of the TwentyTwentyThree theme is adding this. Would you or anyone else reading have any suggestions on how to change this?
Thank you!
Ray
Forum: Fixing WordPress
In reply to: unable to set permalink post-site migrationHi,
This sounded like a problem I had last week. Have you enabled the rewrite module of Apache2? On an Debian/Ubuntu system, you can look in the /etc/apache2/mods-enabled/ directory to see if rewrite.load is there.
If not, this shold enable it:
sudo a2enmod rewrite
This will just add a symbolic link from mods-enabled to mods-available.
Ray
Forum: Fixing WordPress
In reply to: Every page except the main page “not found”Dear all,
So, I have solved my problem! However, why I was able to solve my problem is unknown…
It turns out that the mod_rewrite module of Apache2 was not enabled on the new server.
However, if that was the case, then both web sites B1 and B2 should have failed (since both are on the same server and both require mod_rewrite). Why B2 did not require it but B1 did, even though both had permalinks turned on is unknown to me and why I was stuck looking at the WordPress settings of B1, instead of digging through the server configuration.
At least it works now; sorry for the trouble!
Ray
Forum: Fixing WordPress
In reply to: Every page except the main page “not found”Hi @praveenrai,
Thank you for your reply! Unfortunately, that doesn’t help — there isn’t any change. I don’t get any error messages within the interface after I’ve changed it — are there any log files that would indicate something hasn’t been done correctly?
Does it matter what it is set as? It is currently set at “Month and name”. I’ve tried the other values and nothing has changed as well.
By the way, I’m using WordPress version 6.1.1 . And I just tried disabling all plugins and it still didn’t work. I also switched to another theme (i.e., the older “Twenty Twenty” theme) and that didn’t help either.
Ray
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Remove titleHi @thelmachido
Thanks a lot for your detailed reply!
I’ve been using WordPress off-and-on at various jobs for a few years now, but only now has someone suggested that I change the default look a bit.
A brief Google search brought me down a rabbit hole of changing theme files, and I’ve been trying that for a couple of days with no success. Of course they weren’t for the Twenty Twenty-Two theme specifically.
Thanks a lot for your advice, including all the helpful links! I can see from your message that I had been going down the wrong path…
Ray
Forum: Plugins
In reply to: [Simple Staff List] Looping through staffHi all,
Just to follow-up… I figured out the “mysterious dotted lines” are the lines that are used to separate profiles. For some reason, they’re all bunched up at the top since it can’t properly figure out the height of each profile.
Perhaps this is related to the div class’s definition? I changed the template so that the div class is no longer used. Dotted lines still appear, but they are correctly located between profiles now.
I hope this helps someone else — I didn’t change the CSS file, so perhaps this is related to WordPress 6.0?
Ray
Forum: Fixing WordPress
In reply to: 404 error and permalinksHi,
As you can tell from the top of this message, I have marked my problem as being “resolved”. Posting your message here won’t get any attention since most people will ignore threads that have been marked “Resolved”…I suggest you start a new message yourself. (You might want to give more details…the above you’ve given is a bit too little to go on.)