Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1084469
    michele
    Participant

    Hi
    I have been working with the excerpt field today, and read on envato I think it was about extending the use of the excerpt field to allow shortcodes, by adding the following code to the functions.php file:
    // Allow Shortcodes in the Excerpt field
    add_filter(‘the_excerpt’, ‘do_shortcode’);
    I copied my functions.php file into my child theme, added the code and then noticed that it caused an error on my site, so I trashed the file in my child theme, thinking that that would solve the problem. But my site is still not showing properly. Any ideas what I have done wrong?
    Would appreciate any help I can get.
    Michele

    #1084473
    michele
    Participant
    This reply has been marked as private.
    #1084678
    Christopher
    Moderator

    Hi there,

    Have you removed functions.php file?

    Please create a file in x-child folder and name it functions.php and add following code:

    <?php
    
    // =============================================================================
    // FUNCTIONS.PHP
    // -----------------------------------------------------------------------------
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================
    
    // =============================================================================
    // TABLE OF CONTENTS
    // -----------------------------------------------------------------------------
    //   01. Enqueue Parent Stylesheet
    //   02. Additional Functions
    // =============================================================================
    
    // Enqueue Parent Stylesheet
    // =============================================================================
    
    add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );

    Hope that helps.

    #1084829
    michele
    Participant

    Hi Christopher
    Phew, that worked – you are a lifesaver!
    Thank you so much!
    I added the extra code into the child themes functions.php file and it works great too – many thanks again
    Michele

    #1084988
    Joao
    Moderator

    Glad to hear it Michele.

    Let us know if you need help with anything else.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1084469 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>