Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fulloutcreative

    (@fulloutcreative)

    Thank you for the reply. That will be double the work for us to update the Alt text in the Media Manager, and then again in the Gallery. Since you are intentionally using the Image Name as Alt Text — How I can I submit a feature request for a 1-to-1 assignment were Alt Text is actually assigned correctly?

    Thread Starter fulloutcreative

    (@fulloutcreative)

    @jessecowens Thank you so much for your help with this. Short answer, yes Gutenberg works.
    For Clarity: When I enable (via role manager) WPBakery for that post type I see the buttons for

    • Backend Editor (wpbakery)
    • Frontend Editor (wpbakery)
    • Gutenberg Editor

    This is similar to what I see when editing a Page just without the top-right dropdown:

    • Post & Page Builder
    • WordPress Editor
    • Classic Editor
    Thread Starter fulloutcreative

    (@fulloutcreative)

    I wasn’t able to get wp-cli going so I installed a plugin called “Pods – Custom Content Types and Fields” — that plugin listed the handles. For example, I was able to list the “Block Library” and it came back as “bg_block” — similarly the one I am targeting is listed as “cpt_services”

    Random thought: WP Bakery is able to be an ‘editor’ for this cpt — would that imply that cpt already supports ‘editor’ ?
    Also, that new Pods plugin was available as well when editing a post within Services.
    ——
    I also dug around the Theme Files and found:
    $post_type == TRX_ADDONS_CPT_SERVICES_PT

    I’ve updated the functions.php in the child theme – still no luck — here is the full code of that file (in case something else is missing):

    <?php
    
    /**
     * Add excerpt support to pages
     */
     function add_cpt_services_support() {
        add_post_type_support( 'TRX_ADDONS_CPT_SERVICES_PT', 'editor');
     }
     add_action('init', 'add_cpt_services_support', 99);
    
    /**
     * Child-Theme functions and definitions
     */
      
    function my_theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    
    
    Thread Starter fulloutcreative

    (@fulloutcreative)

    Thanks, still no luck though. I also tried adding it to the functions.php on the parent theme (making a copy first) — triggered debug mode, so that clearly didn’t work. Turns out the CPT is being added by a plugin (trx_addons), does that change where we would place the code?

    Thread Starter fulloutcreative

    (@fulloutcreative)

    Thanks for the help. I’m using a child theme with a pretty sparse functions.php file. I’ve tried adding the code you provided with variations based on $post_type and cpt_services which is how the template refers to the CPT.
    I’ve added this:

    function add_cpt_services_support() {
        add_post_type_support( $post_type, 'editor' );
     }
     add_action('init', 'add_cpt_services_support');

    and tried similar variations

    function add_cpt_services_support() {
        add_post_type_support( 'cpt_services', 'editor' );
     }
     add_action('init', 'add_cpt_services_support');
Viewing 5 replies - 1 through 5 (of 5 total)