• Resolved marcmktd

    (@marcmktd)


    Hello everyone, I am having some trouble trying to solve an issue my website has.

    The website is a directory that has 50 posts, one for each state of the USA. Users can use a search bar to find the post that belongs to the state they have searched for (the query will always be a state name).

    I used this function in order to directly show the (full) post that belongs to the state they wrote in the search bar:

    add_filter( ‘generate_show_excerpt’,’tu_full_post_search’ );
    function tu_full_post_search( $show_excerpt )
    {
    if ( is_search() )
    return false;

    return $show_excerpt;
    }

    It works, but the results page (that is the post that belongs to the query the user has made) is not styled (or, at least, not fully styled) and the javascript it should use is not working. For example, all the posts have accordions with buttons inside of them, but the accordions don’t work and one of the buttons isn’t styled.

    How can I solve this? I think it has something to do with the plugin GenerateBlocks. I noticed just now that the elements that don’t work are GenerateBlocks elements.

    Thanks in advance

    • This topic was modified 2 years, 7 months ago by marcmktd.
    • This topic was modified 2 years, 7 months ago by marcmktd.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘CSS styling not working in search results page’ is closed to new replies.