-
AuthorPosts
-
July 22, 2016 at 10:56 am #663765
Hi all, :-)
is there a way to reduce the scope of functions in the AVIA Layout Builder e.g. for the group EDITORS ?
Best regardsJuly 23, 2016 at 12:21 pm #664160Hey jo_hi,
I think that would require a lot of customisations to the theme and would be considered custom work, but try to explain a bit further and we’ll have a look if it would be possible or not.
Best regards,
RikardJuly 24, 2016 at 2:56 pm #664368… ok, thank you, was just to know if you already had something working to make some settings in the AVIA Layout Builder.
But one can handle it via CSS, eg. if you write in the avia-builder.css
a[href*=”avia_sc”] {
color: blue;
}_a[href=’#avia_sc_columns’],
_a[href=’#avia_sc_columns_one_half’],
_a[href=’#avia_sc_columns_one_third’],
_a[href=’#avia_sc_columns_two_third’],
_a[href=’#avia_sc_columns_one_fourth’],
_a[href=’#avia_sc_columns_three_fourth’],
a[href=’#avia_sc_columns_one_fifth’],
a[href=’#avia_sc_columns_two_fifth’],
a[href=’#avia_sc_columns_three_fifth’],
a[href=’#avia_sc_columns_four_fifth’],
_a[href=’#avia_sc_section’],
_a[href=’#avia_sc_grid_row’],_a[href=’#avia_sc_text’],
_a[href=’#avia_sc_hr’],
_a[href=’#avia_sc_heading’],
_a[href=’#avia_sc_icon_box’],
_a[href=’#avia_sc_iconlist’],
_a[href=’#av_font_icon’],
a[href=’#avia_sc_headline_rotator’],
_a[href=’#avia_sc_button’],
a[href=’#avia_sc_button_full’],
_a[href=’#avia_sc_content_slider’],
a[href=’#avia_sc_notification’],
a[href=’#avia_sc_tab’],
_a[href=’#avia_sc_toggle’],
a[href=’#avia_sc_promobox’],
_a[href=’#avia_sc_contact’],
_a[href=’#avia_sc_blog’],
_a[href=’#avia_sc_magazine’],
_a[href=’#avia_sc_portfolio’],
_a[href=’#avia_sc_masonry_entries’],
_a[href=’#avia_sc_team’],
_a[href=’#avia_sc_table’],
a[href=’#avia_sc_progressbar’],
a[href=’#avia_sc_submenu’],
_a[href=’#avia_sc_postslider’],
_a[href=’#avia_sc_testimonial’],
_a[href=’#avia_sc_catalogue’],
a[href=’#avia_sc_animated_numbers’],
a[href=’#avia_sc_countdown’],
a[href=’#avia_sc_mailchimp’],
_a[href=’#avia_sc_widgetarea’],
_a[href=’#avia_sc_social_share’],
_a[href=’#avia_sc_comments_list’],
a[href=’#avia_sc_codeblock’],_a[href=’#avia_sc_image’],
a[href=’#avia_sc_image_hotspots’],
_a[href=’#avia_sc_video’],
a[href=’#avia_sc_slider’],
_a[href=’#avia_sc_slider_full’],
_a[href=’#avia_sc_slider_fullscreen’],
_a[href=’#avia_sc_featureimage_slider’],
a[href=’#avia_sc_slider_accordion’],
_a[href=’#avia_sc_layerslider’],
_a[href=’#avia_sc_partner_logo’],
_a[href=’#avia_sc_gallery’],
a[href=’#avia_sc_masonry_gallery’],
_a[href=’#avia_sc_gmaps’],_a[href=’#avia_sc_upcoming_events’],
_a[href=’#avia_sc_events_countdown’] {display: none;
}
July 24, 2016 at 3:11 pm #664377and now a script to load the css above just for editors would be the solution,
something in the direction of the one below…// get the the role object
$role_object = get_role( ‘editor’ );
// add $cap capability to this role object
$role_object->add_cap( ‘edit_theme_options’ );July 24, 2016 at 3:31 pm #664383ok, in the template-builder.class.php
near these two lines:#css
wp_enqueue_style( ‘avia-modal-style’ , $this->paths[‘assetsURL’].’css/avia-modal.css’);
wp_enqueue_style( ‘avia-builder-style’ , $this->paths[‘assetsURL’].’css/avia-builder.css’);you can write/add something like
if(current_user_can(‘editor’)) wp_enqueue_style( ‘avia-builder-style_editors’ , $this->paths[‘assetsURL’].’css/avia-builder_editors.css’);
Then it works …
July 24, 2016 at 3:33 pm #664384after creating the file avia-builder_editors.css in the folder avia-template-builder/assets/css/ in this case
July 26, 2016 at 12:00 pm #665251Hi,
Thanks a lot for sharing that, much appreciated :-)
Did that solve your problems?
Thanks,
RikardJuly 26, 2016 at 9:24 pm #665478… yes, in this case it‘s ok – it is just to prevent the editors from being »too creative«
July 27, 2016 at 10:22 pm #665972Hi,
Yes, I can imagine that it can be somewhat of a problem sometimes :-)
Regards,
RikardAugust 22, 2016 at 1:45 pm #675716this can be closed
August 23, 2016 at 7:10 am #676217 -
AuthorPosts
- The topic ‘scope of functions in the AVIA Layout Builder’ is closed to new replies.