Henning

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Filter option "near City" not working… #1109071
    Henning
    Participant

    OK, thanks for the clarification!

    in reply to: Filter option "near City" not working… #1108188
    Henning
    Participant

    Allright, I’ve found the cause of the issue myself – it lies within my renaming of the filter bar via the following code… If I deactivate the function(s) then the geoloc-stuff loads fine and fires accordingly.

    Could you be of assistance here at least? What else do I need to include into my function in order to get things to work / filter properly?

    Thanks!

    /**
     * Modify The Events Calendar search labels / placeholders
     */
    
    function placeholder_rename_search( $filters ) {
     
        $value = '';
         
        if ( ! empty( $_REQUEST['tribe-bar-search'] ) ) {
            $value = esc_attr( $_REQUEST['tribe-bar-search'] );
        }
     
        $html = sprintf(
            '<input type="text" name="tribe-bar-search" id="tribe-bar-search" value="%s" placeholder="%s">',
            esc_attr( $value ),
            'Topic or Class'
        );
     
        $filters['tribe-bar-search']['caption'] = 'Search';
        $filters['tribe-bar-search']['html']    = $html;
     
        return $filters;
    }
    
    function placeholder_rename_location( $filters ) {
     
        $value = '';
         
        if ( ! empty( $_REQUEST['tribe-bar-geoloc'] ) ) {
            $value = esc_attr( $_REQUEST['tribe-bar-geoloc'] );
        }
     
        $html = sprintf(
            '<input type="text" name="tribe-bar-geoloc" id="tribe-bar-geoloc" value="%s" placeholder="%s">',
            esc_attr( $value ),
            'City'
        );
     
        $filters['tribe-bar-geoloc']['caption'] = 'Near';
        $filters['tribe-bar-geoloc']['html']    = $html;
     
        return $filters;
    }
    
    add_filter( 'tribe-events-bar-filters', 'placeholder_rename_search' );
    add_filter( 'tribe-events-bar-filters', 'placeholder_rename_location' );
    in reply to: Conflict with Theme #23823
    Henning
    Participant

    Hi there guys,

    I had the same issue with my current theme and the auto-insertion of paragraph tags. Thumbs up for Jonah’s solution, worked like charm.

Viewing 3 posts - 1 through 3 (of 3 total)