Archived topic
GB+GP
5 replies · Started by Dmitry on August 18, 2020
Hi!
Few short questions:
1. GP - is there any way to change hyperlinks styling in the content area (without CSS)? It looks like it was possible in theme options a few versions earlier.
2. GB - is there any way to add my svg into the default svg list for button element?
3. GB - is there any way to change default color list in the elements colorpicker? For example, It would be very cool if there is a chance to put only brandbook colors into all colorpickers in GB&GP.
Thanks!
Hi there,
1. Colors of links can be set in the Customizer > Colors --> Body / Content etc.
2. Not at this time - we will be adding that feature into the Pro version of the plugin.
3. WP has its own filter for setting colors:
add_action( 'after_setup_theme', function() {
add_theme_support(
'editor-color-palette',
array(
array(
'name' => __( 'Scuro', 'castiglioni' ),
'slug' => 'dark',
'color' => '#382c33',
),
array(
'name' => __( 'Chiaro', 'castiglioni' ),
'slug' => 'light',
'color' => '#eeeeee',
),
)
);
}, 50 );
This also will become part of a global color pallet in the future.
Thanks, David!
Got it. And as for the 1 question. Is there any chance to change text-decoration, typography etc for hyperlinks?
You can do something like this:
.entry-content p a {
text-decoration: underline;
}
This will apply to links found within a paragraph within the content of your post/page.
Yeah, I know, thanks anyway.
No problem