How to add more default colors?

You should be able to add more colors using the add_theme_support function as per the docs here add_theme_support( ‘editor-color-palette’, array( array( ‘name’ => __( ‘strong magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘strong-magenta’, ‘color’ => ‘#a156b4’, ), array( ‘name’ => __( ‘light grayish magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘light-grayish-magenta’, ‘color’ => ‘#d0a5db’, ), array( ‘name’ => __( … Read more

Design with Elementor and code the rest?

It is not possible to use a drag and drop page builder like Elementor to edit the design of a custom-coded theme. If you really want to use Elementor, you could use Elementor Pro’s theme builder to recreate the original theme manually.

Warning: printf(): Too few arguments in helpers.php file

Your printf statement awaits additional string argument which would be substituted instead of %s: printf( // Filters text content and strips out disallowed HTML wp_kses( __(‘Read more <span class=”u-screen-reader-text”>about %s</span>’, ‘Sema’), [ ‘span’ => [ ‘class’ => [] ] ] ), “some subject” ); This example would produce the following output: Read more <span class=”u-screen-reader-text”>about … Read more

why post_class() function apply css classes to all other files?

where to use the post_class() You can use it pretty much everywhere (in WordPress), e.g. single post pages (single.php, single-my_cpt.php, etc.), search results pages (search.php), the index template (index.php), a template part (e.g. content.php), and a shortcode function. it is ok to use post_class() for adding custom classes? Yes, it is. post_class() is not restricted … Read more