Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • norchris Friend
    #872170

    Hi!

    The quick start template includes pictures. In search results, these template pictures are exposed in search results for tags and categories.

    For example; I search for fish. Content with "fish" is exposed with accompanying pictures. But the category "fish" is exposed with a fashionable lady. Ladies are nice, but not for my new site 🙂

    See enclosed pictures. Now, the text is in Norwegian. "Emneord"="Tags". I do not want any of these pictures to show.

    How do I get rid of these pictures? Can I specify a standard picture for "missing pictures" searches?

    Thanks for any help!

    Norchris

    Ninja Lead Moderator
    #873048

    Hi,

    You can apply this way thi disable the image to show on result search

    Open templates/ja_magz_ii/css/custom.css file (create new if it does not exist) and add new rule

    .search-results .result-item .img-intro img {
        display: none;
    }

    Hope it helps

    Regards

    norchris Friend
    #874392

    Thank you very much!

    But, I would rather have pictures shown when they are in an article.

    Looks like there is a function "when no picture connected with an item, display one randomly".

    I would rather have a function "when no pictures connected with an item, display; none; "

    Please help 🙂 Thank you!

    Norchris

    Ninja Lead Moderator
    #875149

    I checked that with your request but I’m afraid you don’t have an option as your expectation, if you don’t want to use the CSS style, you can delete the image from source code below

    Open templates/ja_magz_ii/html/com_search/search/default_results.php file
    find and remove

    <?php $id = preg_replace("/[^0-9]/","",$result->slug);if (isset($imgArr[$id])) : ?>
        <div class="img-intro">
            <img class="img-responsive" src="<?php echo $imgArr[$id]; ?>" />
        </div>
    <?php endif;?>
Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Ninja Lead 8 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum