0be1 (@obe1968)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • 0be1
    Participant

    @obe1968

    Here you go Robin

    function oceanwp_child_enqueue_parent_style() {
    // Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
    $theme = wp_get_theme( ‘OceanWP’ );
    $version = $theme->get( ‘Version’ );
    // Load the stylesheet
    wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘oceanwp-style’ ), $version );

    }
    add_action( ‘wp_enqueue_scripts’, ‘oceanwp_child_enqueue_parent_style’ );

    add_filter (‘bbp_new_topic_pre_title’ , ‘rew_limit_topic_length’ ) ;
    add_filter (‘bbp_edit_topic_pre_title’ , ‘rew_limit_topic_length’ ) ;

    function rew_limit_topic_length ($topic_title) {
    $length = 120 ;
    if (strlen($topic_title) > $length) {
    $topic_title = substr($topic_title, 0, $length);
    }
    return $topic_title ;
    }


    0be1
    Participant

    @obe1968

    Robin;

    I have attempted to add the code you provided to my child themes functions.php file and change the length value to 120. It does not reflect that in either the text on the screen or the actual field length itself. Is there something else I can try?

    Thank you…

    Shawn

Viewing 2 replies - 1 through 2 (of 2 total)