Skip to content
Snippets Groups Projects
Commit 01c35253 authored by agata's avatar agata
Browse files

newscard child tolto pro

parent 83536d83
No related branches found
No related tags found
No related merge requests found
Pipeline #24484 passed
.theme-info {
margin-right: -12px;
margin-left: -12px;
}
.theme-info a {
padding: 10px 10px 11px 14px;
font-size: 14px;
line-height: 21px;
font-weight: 600;
background: #fff;
color: #555d66;
display: block;
text-decoration: none;
border-left: 4px solid #fff;
border-bottom: 1px solid #ddd;
}
.theme-info a:hover {
color: #0073aa;
background: #f3f3f5;
border-left-color: #0073aa;
}
.theme-info a:focus {
box-shadow : none;
}
.accordion-section-title .upgrade-to-pro {
padding: 5px 15px;
margin: -4px -4px 0 0;
display: inline-block;
background-color: rgb(110,175,40);
-webkit-border-radius: 50px;
-moz-border-radius:50px;
border-radius: 50px;
color: #fff;
text-decoration: none;
float: right;
}
li#accordion-section-theme_upsell{
display:none;
}
.accordion-section-title .upgrade-to-pro:hover {
background-color: rgb(110,185,40);
}
......@@ -5,14 +5,16 @@
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentytwenty-style' for the Twenty twenty theme.
$parent_style = 'parent-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/assets/css/customize-controls.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
......@@ -120,19 +120,19 @@ class NewsCard_Customize_Section_Upsell extends WP_Customize_Section {
<h3 class="accordion-section-title">
{{ data.title }}
/* A/I rimosso versione pro
<!-- AI rimosso versione pro
<# if ( data.pro_text && data.pro_url ) { #>
<a href="{{ data.pro_url }}" class="upgrade-to-pro" target="_blank" rel="noopener noreferrer">{{ data.pro_text }}</a>
<# } #>
*/
-->
</h3>
</li>
<?php }
}
function newscard_customize_custom_sections( $wp_customize ) {
/*function newscard_customize_custom_sections( $wp_customize ) {
// Register custom section types.
$wp_customize->register_section_type( 'NewsCard_Customize_Section_Upsell' );
......@@ -143,8 +143,9 @@ function newscard_customize_custom_sections( $wp_customize ) {
'pro_url' => '#',
'priority' => 1,
) ) );
} // A/I rimosso versione pro
} // AI rimosso versione pro
add_action( 'customize_register', 'newscard_customize_custom_sections');
*/
/**
* Add postMessage support for site title and description for the Theme Customizer.
......
......@@ -15,4 +15,6 @@ Text Domain: newscardchild
Use it to make something cool, have fun, and share what you've learned.
*/
li#accordion-section-theme_upsell{
display:none;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment