Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author micropat

    (@micropat)

    One line of custom CSS code, for example:
    .a2a_floating_style { background-color: black !important; }

    Thread Starter heijn026

    (@heijn026)

    I’ve solved it this way:

    In file add-to-any.php (somewhere in the middle of the script) I added background-color:

    ……….

    // If either floating type is enabled
    if ( $vertical_type || $horizontal_type ) {
    // Vertical type?
    if ( $vertical_type ) {
    // Top position
    $position = ( isset( $options[‘floating_vertical_position’] ) ) ? $options[‘floating_vertical_position’] . ‘px’ : ‘100px’;
    // Left or right offset
    $offset = ( isset( $options[‘floating_vertical_offset’] ) ) ? $options[‘floating_vertical_offset’] . ‘px’ : ‘0px’;

    // Add a2a_vertical_style className to Kit classes
    $args[‘kit_additional_classes’] = ‘a2a_floating_style a2a_vertical_style’;

    // Add declarations to Kit style attribute
    if ( ‘left_docked’ == $vertical_type ) {
    $args[‘kit_style’] = ‘left:’ . $offset . ‘;top:’ . $position . ‘;background-color:black;‘;
    } elseif ( ‘right_docked’ == $vertical_type ) {
    $args[‘kit_style’] = ‘right:’ . $offset . ‘;top:’ . $position . ‘;’;
    }

    $floating_html .= ADDTOANY_SHARE_SAVE_KIT( $args );
    }

    ……….

    Thread Starter heijn026

    (@heijn026)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Floating bar’ is closed to new replies.