Forum Replies Created

Viewing 15 replies - 1 through 15 (of 843 total)
  • @jordanlovelle interesting. I activated your theme with Elementor on and worked for me but looking at your form now, it’s different than the default one in my install.

    If you have a place/file to add script you can try:

    	jQuery('.elementor-search-form').append('<input type="hidden" id="search-param" name="post_type" value="product">');


    Not sure what your end goal is but:

    .elementor-2245 .elementor-element.elementor-element-3b12895 .elementskit-navbar-nav > li > a .elementskit-submenu-indicator {
        color: #f34;
        transform: rotate(45deg);

    That will make it orange and turn it 45 degrees.



    The below is not for production but just a quick and dirty example:

    $results = $wpdb->get_results( "SELECT post_content FROM wp_posts WHERE post_type IN ('post') AND post_status IN ('publish') ");
    $res = implode(' ',array_column($results, 'post_content'));
    /* */
    function most_frequent_words($string, $stop_words = [], $limit = 10) {
        $string = strtolower($string); // Make string lowercase
        $words = str_word_count($string, 1); // Returns an array containing all the words found inside the string
        $words = array_diff($words, $stop_words); // Remove black-list words from the array
        $words = array_count_values($words); // Count the number of occurrence
        arsort($words); // Sort based on count
        print_r( array_slice($words, 0, $limit)); // Limit the number of words and returns the word array
    most_frequent_words(strip_tags($res), array('the','a','to','and','of','for') );

    Even filtering out a handful of common words, my result is a bunch of (to me) useless words counted from my test site.

    The above is more an example that in my opinion, you’ll need to filter out a lot more words, possibly limit results to larger words, although that could be an issue if you are limiting say word to 5+ letters but you talk about SPAM a lot, then it isn’t counted.

    I saw some plugins but they are pretty old and don’t work with the current WordPress version.

    Did you try them? Most likely they are just full of SQL queries so they should still work. Might be better not to reinvent the wheel here.

    Good luck!

    You are using the Avant theme that has a sidebar.php file. Make the contents of that file:

     * The sidebar containing the main widget area.
     * @package Avant
    if ( ! is_active_sidebar( 'sidebar-1' ) ) {
    } ?>
    <div id="secondary" class="widget-area <?php echo ( get_theme_mod( 'avant-page-sidebar-blocks' ) ) ? sanitize_html_class( 'sidebar-break-blocks' ) : ''; ?>" role="complementary">
    	<?php dynamic_sidebar( 'sidebar-1' ); ?>
    </div><!-- #secondary -->
    <?php } ?>

    That will show the sidebar only on the home page.

    Now keeping mind this is just not showing the sidebar on other pages not changing the CSS in any way so your content area will not span the entire screen. If you want it to, you can try:

    .woocommerce #container, .woocommerce-page #container, .content-area {
        width: 100%;
        margin: 0;
    .home .woocommerce #container, .home .woocommerce-page #container, .home .content-area {
        width: 70%;
        margin: 0 5% 0 0;

    Some examples of resizing:

    For a show/hide sidebar, you can treat it like:

    Found this as well if you want to get fancy:

    You can try:

    #site-content { min-height: 100vh; }

    But that’s going to shove the footer off the page on pages where you don’t have enough content. If that’s a big deal you can try to “figure out” your footer height and use CSS calc instead. You have 80px of combined top and bottom padding on your footer so you can try:

    #site-content { min-height: calc(100vh - 80px); }

    That will still shove the footer off the page like the first but obviously less so. Since you don’t have a fixed height you can just play with the 80px if you like.

    sounds like you need:

    make sure your buttons have a higher z-index than your overlay.

    Cookies sounds like the easiest bet here.


    $content = apply_filters('the_content', get_the_content());
    $slices = explode(" ", $content);
    $first_slice = implode(" ", array_splice($slices, 0, 100));
    $second_slice = implode(" ", array_splice($slices, 0));
    echo '<div class="non-paywall">'. $first_slice .'</div>';
    echo '<div class="paywall">'. $second_slice .'</div>';

    That work?

    .hentry .entry-content a {
        text-decoration: none;

    You need to be more specific in your CSS. Try that.



    can’t remember the acf code off hand but like on the home page you could grab the array with:

    $today = strtolower(date('l'));
    $schedule = get_field($today.'-schedule');
    foreach($schedule as $event){

    assuming your schedules are like named monday-schedule, etc…



    An easy way, well easier than trying to extract content out of posts, would be to use advanced custom fields. Make an options page and have Monday – Sunday as field groups. Make an ACF Repeater (although I believe that feature is a “Pro” feature) in each one so you can add any number of events per day.

    On each individual page, you could call the field by category, eg: monday

    On the home page, you can use PHPs the_date() to grab the day of the week you are on and then pull the ACF field by that.

    This would also allow you to have one page in the admin where you could add and edit all events in one place.



    What are you using or doing to create the schedule?



    This is a lot of guessing on my end but try this and see what it does.

    Make the entire contents of your searchform.php the following:

    <form class="elementor-search-form" role="search" action="<?php echo get_site_url(); ?>" method="get">
    	<div class="elementor-search-form__toggle">
    		<i aria-hidden="true" class="fas fa-search"></i>
    		<span class="elementor-screen-only">Search</span>
    	<div class="elementor-search-form__container elementor-search-form--full-screen elementor-lightbox">
    		<input placeholder="" class="elementor-search-form__input" type="search" name="s" title="Search" value="forest">
    		<input type="hidden" id="search-param" name="post_type" value="product">
    		<div class="dialog-lightbox-close-button dialog-close-button">
    			<i class="eicon-close" aria-hidden="true"></i>
    			<span class="elementor-screen-only">Close</span>

    Also, make sure your searchform.php is in the root of your theme along with like, style.css, index.php etc…



    How are:

    09.30 – Easy Yoga
    10.45 – Power Yoga
    18.30 – Power Yoga
    19.45 – Power Yoga


    populated? Really need more information in order to find a solution.

Viewing 15 replies - 1 through 15 (of 843 total)