improvemetns

This commit is contained in:
paul sealock 2024-09-24 13:06:16 +12:00
parent 5bca3ad8ab
commit 25bbd89be2
3 changed files with 13 additions and 5 deletions

View File

@ -103,9 +103,10 @@ export const Content = ( { data } ) => {
return (
<div
key={ key }
className="woocommerce-settings-element"
className="woocommerce-settings-element woocommerce-settings-title"
>
<h3>{ setting.title }</h3>
<p>{ setting.desc }</p>
</div>
);
case 'checkbox':

View File

@ -187,10 +187,6 @@
justify-content: space-between;
margin: 16px 0px;
&:first-of-type {
margin: 0;
}
h4 {
margin: 0;
min-width: 200px;
@ -205,3 +201,13 @@
max-width: 420px;
}
}
.woocommerce-settings-title {
display: flex;
flex-direction: column;
margin-bottom: 30px;
h3 {
margin: 10px 0 0 0;
}
}

View File

@ -178,6 +178,7 @@ if ( ! class_exists( 'WC_Settings_Page', false ) ) :
}
// Otherwise, render the page's output method.
$html = str_replace('THIS IS THE PARENT OUTPUT', '', $html);
$tags = new WP_HTML_Tag_Processor( $html );
while( $tags->next_tag( array( 'tag_name' => 'script' ) ) ) {
$script_type = $tags->get_attribute( 'type' );