This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 481 through 495 (of 18,415 total)
  • Author
    Posts
  • in reply to: Returning search results not corresponding #55903
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Indexed photos are downloadable #55902
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Indexed photos are downloadable #55893
    Ernest MarcinkoErnest Marcinko
    Keymaster

    That is exactly what this CSS does, it prevents them from opening so the user can’t download them. Isn’t that what you needed? I might be missunderstanding something here.

    in reply to: Styling hierarchical taxonomy filter #55890
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Oh okay, there is still hope. It’s an external library, unfortunately the term level can’t be incorporated to the items so custom CSS is not possible there. The way it’s resolved currently is via added non-breakable space characters to increase indendation.
    To change that a code edit is required unfortunately via filter templating. Please read that knowledge base just to have a bit of understanding how that works and follow the instructions below:

    1. Make these subdirectories your child theme root folder: asp/filters/taxonomy/, so this path exists: wp-content/themes/{your-theme-name}/asp/filters/taxonomy/
    2. Copy wp-content/plugins/ajax-search-pro/includes/views/filters/asp-tax-multisearch.php file to wp-content/themes/{your-theme-name}/asp/filters/taxonomy/asp-tax-multisearch.php
    3. Open up the newly copied file wp-content/themes/{your-theme-name}/asp/filters/taxonomy/asp-tax-multisearch.php, it should contain this:

    <div class='asp_select_label asp_select_multiple'>
        <select aria-label="<?php echo asp_icl_t('Taxonomy select [' . $taxonomy . "] ($real_id)", 'Taxonomy select for ' . $taxonomy, true) ?>"
                class='asp_gochosen asp_goselect2'
                multiple
                data-placeholder="<?php echo !empty($filter->data['placeholder']) ?
                            asp_icl_t("Multiselect placeholder [".$taxonomy."]" . " ($real_id)", $filter->data['placeholder']) : ''; ?>"
                <?php if (isset($filter->data['custom_name'])): ?>
                    name="<?php echo $filter->data['custom_name']; ?>"
                <?php else: ?>
                    name="<?php echo $filter->isMixed() ? "termset_single" : "termset[".$taxonomy."][]"; ?>"
                <?php endif; ?>>
            <?php foreach ( $filter->get() as $kk => $term ): ?>
                <?php if ( $term->id <= 0 ): ?>
                <option value="-1" class="asp_option_cat asp_option_cat_level-0"
                    <?php echo $term->default ? 'data-origvalue="1"' : ''; ?>
                    <?php echo $term->selected ? "selected='selected'" : ""; ?>>
                    <?php echo asp_icl_t("Chose one option [".$taxonomy."]" . " ($real_id)", $term->label); ?>
                </option>
                <?php else: ?>
                <option class="asp_option_cat  asp_option_cat_level-<?php echo $term->level; ?>"
                        <?php echo $term->default ? 'data-origvalue="1"' : ''; ?>
                        asp_cat_parent="<?php echo $term->parent; ?>"
                        value="<?php echo $term->id; ?>"
                    <?php echo $term->selected ? "selected='selected'" : ""; ?>>
                    <?php echo str_repeat("&nbsp;&nbsp;", $term->level) . $term->label; ?>
                </option>
                <?php endif; ?>
            <?php endforeach; ?>
        </select>
    </div>

    4. On line 25:

    <?php echo str_repeat("&nbsp;&nbsp;", $term->level) . $term->label; ?>

    There are 2 non-breakable characters to increase indentation per term level. If you add more it will increase it for each level:

    <?php echo str_repeat("&nbsp;&nbsp;&nbsp;", $term->level) . $term->label; ?>

    5. After changing that and saving it should be apparent on the front-end.

    As for the second issue, if you are on a page where the filters are preset (have initial value) via URL, then resetting will set it to that value.

    in reply to: Indexed photos are downloadable #55889
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yes, it appears not the full code is added, the closing parentheses from the 3rd line “}” is missing on the website source so it doesn’t work. Please try it again, make sure to copy all 3 lines, then clear the cache and it should be apparent:

    .results .item {
        pointer-events: none !important;
    }
    in reply to: Indexed photos are downloadable #55887
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Michel,

    Surely!

    I assume you mean a feature where the user is not redirected to the image, so they can’t download it right?

    The easiest possible way to get around that is to completely disable that via a custom CSS:

    .results .item {
        pointer-events: none !important;
    }

    Apply this code to your theme custom CSS field (if it supports it) or use the custom CSS field on the search plugin back-end. After clearing the cache the user will no longer be able to click on the result to download it.

    If you need help adding this, let me know.

    in reply to: Search Issue on iPhone Devices #55885
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Thank you very much for the details, it helps a lot!

    Can you please try to change the results layout on that search bar (ID=4) to block here? For some reason a the fixed potion floating gets miscalculated by an added top padding, but that should resolve the issue hopefully.

    in reply to: wp-admin search? #55882
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Nancy,

    I’m afraid no. The admin search works very differently, and I’m not sure if there is every going to be a feature to interfere with it.

    in reply to: Critical performance slowdown #55880
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Styling hierarchical taxonomy filter #55877
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Sure!

    You have two options, one is to use this selector for each level:

    .asp_ss .asp_option_cat_level-1 {}

    Or via a data attribute selector:

    .asp_ss div[data-lvl="1"] {}

    So for example, if you want to add 30px of margin-left to level 3 taxonomy terms, then either:

    .asp_ss .asp_option_cat_level-3 {
        margin-left: 30px !important;
    }

    ..or:

    .asp_ss div[data-lvl="3"] {
        margin-left: 30px !important;
    }
    in reply to: Critical performance slowdown #55876
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I assume by custom results page you mean not the default results page, but a regular page with the loop grid to which the plugin redirects the results.

    These are fully controlled by Elementor and I think they don’t have a counter/filter available for the loop grid on non-archive type pages. I tried to look these up, but this is the only thin I have found, from which I assume there is no such widget in core Elementor.

    in reply to: Critical performance slowdown #55872
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Critical performance slowdown #55868
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: ASP with custom blog page from divi 5 #55867
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I’m not sure about that text as it is generated by divi somewhere, and I’m fairly new to divi 5 myself.

    This is the only article I was able to find, which suggests a custom 404 page template, but I don’t know if that is the way, you may have to ask divi support for the specific location.

Viewing 15 posts - 481 through 495 (of 18,415 total)