Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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 regards

    #664160

    Hey 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,
    Rikard

    #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;

    }

    #664377

    and 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’ );

    #664383

    ok, 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 … 

    #664384

    after creating the file avia-builder_editors.css in the folder avia-template-builder/assets/css/ in this case

    #665251

    Hi,

    Thanks a lot for sharing that, much appreciated :-)

    Did that solve your problems?

    Thanks,
    Rikard

    #665478

    … yes, in this case it‘s ok – it is just to prevent the editors from being »too creative«

    #665972

    Hi,

    Yes, I can imagine that it can be somewhat of a problem sometimes :-)

    Regards,
    Rikard

    #675716

    this can be closed

    #676217

    Hi,

    Ok, thanks for letting us know :-)

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘scope of functions in the AVIA Layout Builder’ is closed to new replies.