koreacito
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Fixing WordPress
In reply to: Block editor’s using theme styles setting does not work.Yes, I am using Astra pro.
Thank you for your kind response.
I should ask the Astra team.
Forum: Fixing WordPress
In reply to: Block editor’s using theme styles setting does not work.I don’t know how to use custom code. I used Astra’s theme builder to specify the background color and font color.
Reference image: https://i.imgur.com/AdRWSsq.png
Can I change the background color to black in the Block Editor, or rather change the font color to black?
Forum: Plugins
In reply to: [Schema - All In One Schema Rich Snippets] Schema ProYes, I got an answer from the management.
By adding the below array, I was able to add the schema type without difficulty.add_action( 'after_setup_theme', 'add_my_custom_meta_field' ); function add_my_custom_meta_field() { add_filter( 'wp_schema_pro_schema_meta_fields', 'my_extra_schema_field' ); add_filter( 'wp_schema_pro_schema_software_application', 'my_extra_schema_field_mapping', 10, 3 ); } /** * Add fields for mapping. * * @param array $fields Mapping fields array. * @return array */ function my_extra_schema_field( $fields ) { $fields['bsf-aiosrs-software-application']['subkeys']['featureList'] = array( //
bsf-aiosrs-book
used for Book,bsf-aiosrs-event
will for Event like that. 'label' => esc_html__( 'Feature List', 'wp-schema-pro' ), // Label to display in Mapping fields 'type' => 'text', // text/date/image 'default' => 'none', 'required' => true, // true/false. ); $fields['bsf-aiosrs-software-application']['subkeys']['screenshot'] = array( //bsf-aiosrs-book
used for Book,bsf-aiosrs-event
will for Event like that. 'label' => esc_html__( 'Screenshot', 'wp-schema-pro' ), // Label to display in Mapping fields 'type' => 'text', // text/date/image 'default' => 'none', 'required' => true, // true/false. ); $fields['bsf-aiosrs-software-application']['subkeys']['author'] = array( //bsf-aiosrs-book
used for Book,bsf-aiosrs-event
will for Event like that. 'label' => esc_html__( 'Author', 'wp-schema-pro' ), // Label to display in Mapping fields 'type' => 'text', // text/date/image 'default' => 'none', 'required' => true, // true/false. ); return $fields; } /** * Mapping extra field for schema markup. * * @param array $schema Schema array. * @param array $data Mapping fields array. * @return array */ function my_extra_schema_field_mapping( $schema, $data, $post ) { if ( isset( $data['featureList'] ) && ! empty( $data['featureList'] ) ) { $schema['featureList'] = esc_html( $data['featureList'] ); } if ( isset( $data['screenshot'] ) && ! empty( $data['screenshot'] ) ) { // For date/text type field $schema['screenshot'] = esc_html( $data['screenshot'] ); } if ( isset( $data['author'] ) && ! empty( $data['author'] ) ) { // For date/text type field $schema['author'] = esc_html( $data['author'] ); } return $schema; }- This reply was modified 4 years, 7 months ago by koreacito.
- This reply was modified 4 years, 7 months ago by tobifjellner (Tor-Bjorn “Tobi” Fjellner).
? ?? ?? ?????.
Thank you for the correct support email address.
Viewing 5 replies - 1 through 5 (of 5 total)