breadcrumbspress_css_variables

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Definition
apply_filters( "breadcrumbspress_css_variables", $vars );
Arguments
Name
Type
Description
$vars
array
Associative array of CSS custom-property names and values.
Returns
Return the array of CSS custom properties.

Filters the CSS custom properties emitted as inline styling.

The plugin initially adds values only where its style settings differ from their defaults. Values are emitted into a :root rule.

Example

This example registers a callback for the filter. Adapt the values and conditions to your site.

add_filter( 'breadcrumbspress_css_variables', function( $vars ) {
    $vars['--breadcrumbspress-base-font-size'] = '16px';
    return $vars;
}, 10, 1 );
Rate this reference
0
0
4

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0