How to make content area in full width in Twenty Twenty-One theme?
I figured it out. It is the inherit default layout settings. First turn that off and then enter the desired width.
I figured it out. It is the inherit default layout settings. First turn that off and then enter the desired width.
You could paste the SVG in the Custom HTML block and style it with CSS. There is also https://wordpress.org/plugins/icon-block/ which supports pasting a custom icon and facilitates styling it.
Thanks to @jacob peattie for helping me to figure this out. The issue is that I had WP_CONTENT_URL set incorrectly. Removing it fixed the issue. I could have added /wp-content to the url and it would’ve solved the issue as well. To explain why this caused in issue, I turned to the docs. This page … Read more
You can either make a child theme, or make a plugin. Within that child theme or plugin, you’ll dequeue one of the copies. If you don’t have any other theme customizations, it probably makes the most sense to create a custom plugin. Both your theme and your plugin are paid, so you’ll need to look … Read more
but now in WordPress 6.0, there is no such attribute that exists in Gutenberg to select a new page template. This is not true! WP 6.0 did not remove this functionality. In fact in the block editor it is even more prominent and has its own dedicated panel if you scroll up the sidebar: If … Read more
Just use link_before in your wp_nav_menu $args and add opening/closing span tags: $args = [ ‘link_before’ => ‘<span>’, /* Add closing </span> to link_after */ ‘link_after’ => ‘</span><svg>…</svg>’, // Other args ];
At the time of writing this isn’t possible, twentytwentytwo works around this by registering patterns in a subfolder then using a pattern block. This way they can define patterns in PHP then use the functions. This is how they show the bird in the header and include localised strings.
Based on the information provided? You can’t, it’s not possible. Child themes can only override code from parent themes if the parent theme explicitly provides a way for child themes to do so. They can do this by providing a hook, or by making functions ‘pluggable’, but class methods can’t be pluggable.
This is how I do it in a custom theme: <h3>Select pages to include in menu:</h3> <p> <?php $page_ids = get_all_page_ids(); $current_selected = get_option(“pages_to_include”); foreach( $page_ids as $page_id ) { if( get_post_status( $page_id ) == ‘publish’ ) { $checked = ( !empty( $current_selected ) && in_array( $page_id, $current_selected ) ) ? ‘ checked=”checked”‘ : ”; … Read more
The rachatdecredit theme is almost certainly a custom theme, you can tell from the URL for the stylesheet. Most of the time if a theme is in a directory with the same name as the site it is custom, or at least a child theme: http://www.rachatdecredit.net/wp-content/themes/rachatdecredit/style.css Since you want something very basic, I would suggest … Read more