Skip to content

Commit

Permalink
fixed issues in theme customize options
Browse files Browse the repository at this point in the history
  • Loading branch information
Janvi committed Dec 9, 2024
1 parent fbe9eee commit e25c8a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions assets/admin/css/hu_admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,21 +241,19 @@ a.czr-rating-link:hover {
.remove_google_fonts select[data-customize-setting-link="hu_theme_options[font]"] + .selecter .selecter-item[data-value="tahoma"] {
display: block;
}
#customize-theme-controls .customize-pane-parent h3.accordion-section-title {
#customize-theme-controls .customize-pane-parent h3.accordion-section-title .accordion-trigger {
display: flex;
align-items: center;
flex-wrap:wrap;
column-gap: 10px;
position:relative;
padding-left:0;
width: 100%;
}
#customize-theme-controls .accordion-section-title:after {
top: 50%;
transform: translateY(-50%);
}
#customize-theme-controls .customize-pane-parent .accordion-section-title .accordion-trigger {
padding-left:0;
width: auto;
}
#customize-theme-controls .customize-pane-parent .czr-panel-subtitle{
width:100%;
display:block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/* WIDGET PANEL ICON */
if ( $('.control-panel-widgets').find('.accordion-section-title').first().length ) {
$('.control-panel-widgets').find('.accordion-section-title')
$('.control-panel-widgets').find('.accordion-section-title button')
.first()
.prepend( $('<span/>', {class:'fas fa-magic'} ) );
}
Expand Down
4 changes: 2 additions & 2 deletions functions/czr/panels/class-panels.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ protected function hu_render_template() {
<h3 class="accordion-section-title" tabindex="0">
<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls="static_front_page-content">
{{ data.title }}
</button>
<span class="czr-panel-subtitle">{{ data.czr_subtitle }}</span>
<span class="czr-panel-subtitle">{{ data.czr_subtitle }}</span>
</button>
<span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel', 'hueman' ); ?></span>
</h3>
<ul class="accordion-sub-container control-panel-content"></ul>
Expand Down

0 comments on commit e25c8a7

Please sign in to comment.