Tag: webdev

  • WordPress content in Post Template not editable

    With WordPress FSE, if you run into the issue of not being able to edit or insert content inside the Post Template block inside a Query Loop block. Try temporarily editing the query loop to not inherit and instead be a query that you know will show results. Then it should be editable. Make your…

  • Load 3rd party JavaScript in your custom block

    The best way I’ve found to use 3rd party JavaScript in my custom blocks (for example loading AlpineJS or VueJS) is to register the script and then use viewScript to include it. Here’s an example In your custom block plugin PHP: Then in block.json Now that script will load on every page the block is…

  • WordPress wp-now SQLite location

    I’ve been testing out wp-now and really liking it so far for spinning up a quick WordPress site. What I couldn’t figure out is where the sqlite file was saved when using wp-now in ‘wordpress’ mode for a real site (not just playground). I knew playground database was in ~/.wp-now/wp-content/playground/database/.ht.sqlite But finding the database for…

  • Use SVG Now

    Start using SVG on your new web projects High resolution retina displays are only going to increase in popularity, but right now most current sites look pretty bad/blurry on them. While a perfect solution to photos hasn’t been discovered yet, we can now handle our other image needs fairly well. Thomas Fuchs created a great…