James Koster
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Possible to Filter FSE Blocks?I just remembered that a feature tentatively scheduled for 6.4 is very relevant here. You may be interested to check out this issue.
Forum: Installing WordPress
In reply to: WordPress MigrationHey, I haven’t done this for a while, but the following manual process provide a simple migration:
- Ensure local and remote WordPress versions match.
- Ensure you have the same themes / plugins installed in each location. You can upload the contents of the
wp-content
directory from local to remote to achieve this. - Export content from the local environment via Tools → Export.
- Import content to the remote environment via Tools → Import.
That will take care of content / themes / plugins.
For a more comprehensive experience that includes things like settings and users you’ll need to export/import the entire database using a tool like PHPMyAdmin. It’s probably easier to use a plugin. Did you try posting in the All-in-One WP Migration support forum?
Forum: Developing with WordPress
In reply to: Header image different on each pageHey,
By ‘header’ do you mean the website header containing the site title, logo, navigation, etc? Unfortunately it’s not really possible to do this with blocks just yet. Instead you’d need to create a custom plugin to apply the page’s Featured Image to the header as a background. Code like this should work.
If you just want to display a different image on each page, that would best be done by editing the “Pages” template and adding the “Post Featured Image” block.
If you could be a little more explicit in exactly what it is you’re trying to accomplish it would be easier for folks to assist.
Thanks, James.
Forum: Developing with WordPress
In reply to: Possible to Filter FSE Blocks?Hey,
It’s not possible to filter the Comment Edit Link block this way.
Instead you can create dedicated blocks for trashing / marking comments as spam. This has the advantage of allowing you to place those blocks wherever you like.
There’s a command line tool in Gutenberg for doing this. You can view a video walkthrough for that here. Or browse the source code here.
James
Forum: Fixing WordPress
In reply to: permalink problemHey,
Judging from the
&preview=true
part of the URLs you shared it looks like you may be previewing, is that correct?Previews will always use the ‘plain’ or ‘default’ permalink structure. If you publish the document and view it on the frontend it should have the correct permalink structure.
I hope that helps.
James
Forum: Everything else WordPress
In reply to: Landing page showing as numerical valueHey,
Is it possible that the software is displaying the page
id
rather than the title?What does your permalink structure look like (check in Settings → Permalinks)? It seems unlikely, but if that is set to “Plain” it might affect things.
If you can share which software you’re using it will be easier for folks to help out.
James
Forum: Fixing WordPress
In reply to: Image header and Menu barHey.
Sorry I should have been more specific. First you need to create a new custom template in the site editor. Here’s how to do that:
- Open Appearance → Editor
- Click Templates
- Click the
+
button - Choose Custom template, give the template a name, then click Create
- You’ll be taken to the full screen editor. If a modal appears with design suggestions you can skip it.
- Paste in the blocks from before and save the template.
Next, exit the site editor and open a page you want to apply this design to. In the Summary Panel of the settings sidebar you’ll find a template section. There you can switch the template to the one you just created. Save and view the page on the frontend – it should have the new design ??
James
Edit: I forgot to mention, if the page doesn’t have a featured image, you will just see an empty template on the frontend, so don’t forget to add one ??
- This reply was modified 1 year, 3 months ago by James Koster.
Forum: Fixing WordPress
In reply to: Long-ago deleted page suddenly loading for blog pageHey.
The “Posts page” setting tells WordPress when to load the blog template instead of a standard page. Any content added to the page originally will be ignored. This can be confusing if you already created the page, added a bunch of blocks, then set the posts page afterwards.
It’s important to set this correctly though, so that features like pagination work correctly when you add more posts.
If you’re using a block theme it’s easy to edit the blog template:
- Open the site editor (Appearance → Editor)
- Click Pages
- Click your blog page (it should be the second item in the list)
- Click the preview frame to begin editing
Good luck!
Forum: Fixing WordPress
In reply to: Image header and Menu barHey,
You can use a combination of the
Cover
andTitle
blocks to achieve this.Create a new empty custom template and insert the following:
<!-- wp:cover {"useFeaturedImage":true,"dimRatio":50,"minHeight":100,"minHeightUnit":"vh","isDark":false,"layout":{"type":"constrained"}} --> <div class="wp-block-cover is-light" style="min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:post-title {"textAlign":"center"} /--></div></div> <!-- /wp:cover --> <!-- wp:post-content /-->
Customise and add any other design elements you need (like a header and footer). Then apply this template to any page you want to have a full-screen featured image. If you’d like to apply this effect to all pages, then you should edit your “Pages” template.
I hope this is helpful!
James
Forum: Fixing WordPress
In reply to: Choosing replacement for abandoned themeI think that for all intents and purposes Blockbase themes (and other “universal themes”) are block themes. They just provide access to the Customizer as well. So it’s basically a question of whether you still want to use that, or if you feel ready to dive in to the Site Editor 100%.
It’s impossible to say for certain, but since these themes are Automattic projects they will probably be around for a long time to come ??
Forum: Fixing WordPress
In reply to: Media File Library – Image Caption/Description not showing UP> Many thanks for your time James!
You’re welcome ??
Forum: Fixing WordPress
In reply to: “+ Add New Page” not working with my own template.Hey,
Sorry, I’m not entirely sure what it is you’re trying to do?
You say the New page button doesn’t work in the menu editor, what happens when you click it? It should publish the new page and add it to your menu at the same time.
> This, because my landing page exists out of multiple pages.
Do you mean that you want to create a single page that is split in to multiple sections, and that only one section should be visible at a time? Kind of like a slideshow of content? I don’t think there’s a core block that does this, but there are many plugins you might try ??
Forum: Fixing WordPress
In reply to: Media File Library – Image Caption/Description not showing UPHey,
I can confirm that these fields are not obsolete ??
Alt text appears in the markup as you discovered.
The Title and Description will appear when the image you inserted is configured to link to its attachment page.
If a caption is added to the image details in the media library, that text will be used to autofill the caption when the image is inserted in a post or page. This is not however linked, so if you add the caption after inserting the image, the caption will not be included. You’d need to update the post/page manually.
Forum: Fixing WordPress
In reply to: Center WidgetHey,
I just took a look at your site and it seems to be correctly aligned. Here’s a screenshot of what I see: https://cloudup.com/c2ETFC8Dwfa
Perhaps this was just a cache issue? If you’re still seeing the issue let me know which browser you’re using and we can investigate further ??
Forum: Fixing WordPress
In reply to: Home page not loading properlyHey,
It seems to be working just fine for me ?? Here’s a screenshot of what I see: https://cloudup.com/cyo3uSqzc-J
> If anyone knows of any good free themes – please let me know about these too!
I really like the new default theme Twenty Twenty-Two because it is entirely block based and enables you to make use of the new site editing features in 5.9.