Beginner making a custom Theme. Should I use PHP or Blocks?

[ad_1]

I’m already familiar with HTML, javascript, and CSS. I’ve gained a cursory understanding of PHP over the past few weeks. I wrote a prototype of the site’s structure using HTML and CSS, and planned on inserting PHP where applicable.

I’d heard of block themes and figured it might be easier to write one of those. But a few hours into trying, I’ve found that I have to wrestle with WordPress’s vendor-prefixed classes, bizarre blank SVGs being prepended to the <body>, and a whole load of complexity I wasn’t expecting from something that was advertised to make development easier.

What’s going on here? If it were up to me, I’d just go ahead with the classic theme. But, having glanced at my client’s site, I think they’ve already used blocks on several pages. So would switching to a PHP-only theme break the site?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer