'background color specific section wont change after adding content in custom description section of woocommerce using functions PHP
I have tried to add content in the custom description tag using a code in the functions php as seen below. I want to add a background color to this section, but the background color stays white (default).
I am using this code;
add_filter( 'the_content', 'wpglorify_custom_description_tab' );
function wpglorify_custom_description_tab( $content ){
if( is_product() ) {
$content .= '<p>[vc_section][vc_row full_width="stretch_row" equal_height="yes" content_placement="middle" fullwidth="1" css=".vc_custom_1648468332011{background-color: #f5f5f5 !important;}"][vc_column width="1/2" css=".vc_custom_1648468400351{margin-top: 50px !important;margin-bottom: 50px !important;}"][vc_column_text]
//content//
\[/vc_column_text\]\[/vc_column\]\[vc_column width="1/2" css=".vc_custom_1648468405860{margin-top: 50px !important;margin-bottom: 50px !important;}"\]\[vc_single_image image="3347" img_size="full" alignment="center"\]\[/vc_column\]\[/vc_row\]\[/vc_section\]</p>
';
}
return $content;
Can someone tell me what i am doing wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
