Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Excluding layout images
- This topic has 11 replies, 2 voices, and was last updated 7 years, 2 months ago by
Sandy.
-
AuthorPosts
-
March 27, 2019 at 10:17 am #21819
Sandy
ParticipantHi Ernest,
Quick question, how do i exclude images used for the layout of the website,
right now header images etc.. are showing up in my search.Thanks,
-SandyMarch 27, 2019 at 12:03 pm #21837Ernest Marcinko
KeymasterHi Sandy,
The plugin parses the images as defined under the General Options -> Image options panel. The default order is Featured image -> Parse content -> Parse excerpt
I guess the image might be present in the content, so maybe only enabling the primary image source for the featured images could resolve the issue: https://i.imgur.com/OqPPYyE.pngMarch 27, 2019 at 1:02 pm #21842Sandy
ParticipantHi Ernest,
I copied your settings, but i still get logo’s and images from the header (see attachement)
Best,
-Sandy-
This reply was modified 7 years, 2 months ago by
Sandy.
March 27, 2019 at 2:24 pm #21846Ernest Marcinko
KeymasterHi Sandy,
That probably means, that those are the features images I guess. Do you want to not display images alltogether, or rather getting images from the content only?
March 27, 2019 at 3:25 pm #21850Sandy
ParticipantYou cannot access this content.
March 27, 2019 at 3:34 pm #21851Ernest Marcinko
KeymasterHi,
Thank you for the detaisl, I see what the problem is now. Those are actually attachment results, and those are the attachment images. By turning off this option, the images won’t appear for them: https://i.imgur.com/7ad0SEC.png
March 27, 2019 at 3:48 pm #21852Sandy
ParticipantYou cannot access this content.
March 28, 2019 at 3:01 pm #21868Ernest Marcinko
KeymasterHi Sandy,
Okay, I think I understand now what you are reffering to. You want to exclude some of the attachments from the results. You can do that by entering the attachment IDs into this field, comma separated: https://i.imgur.com/AehzD0T.png
To find the attachment ID, go to the media library page, and click on the attachment. The ID will be in the browser address bar like so: https://i.imgur.com/kuO5Wq8.pngThe group attachments on that topic are PDF files, that was not included in the mime types list under the options. I have added it here for you: https://i.imgur.com/0J2cmUG.png
Please make sure to add that mime type to all search instances, where you want to return the PDF attachments.March 28, 2019 at 3:34 pm #21876Sandy
ParticipantSuper, thanks again!
March 29, 2019 at 11:30 am #21899Sandy
ParticipantYou cannot access this content.
March 29, 2019 at 11:53 am #21906Ernest Marcinko
KeymasterHi Sandy!
I think this is due to one of the custom field filters. The ‘Include Geldzaken’ is unneccessary, as the exclusions are already have the same effect. If you remove it, it should start working: https://i.imgur.com/18wuVBS.png
March 29, 2019 at 12:00 pm #21908Sandy
ParticipantAh great, i will remove the include on the other searches too,
thanks again! -
This reply was modified 7 years, 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.