Tagged: x
-
AuthorPosts
-
April 28, 2016 at 3:12 am #903676
P CParticipantHi,
The following revolution slider code is appearing in the search results when the search term “Classes” is used on my site:
var htmlDiv = document.getElementById(“rs-plugin-settings-inline-css”); var htmlDivCss=””; if(htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; }else{ var htmlDiv = document.createElement(“div”); htmlDiv.innerHTML = “” + htmlDivCss + “”; document.getElementsByTagName(“head”)[0].appendChild(htmlDiv.childNodes[0]); } var htmlDiv = document.getElementById(“rs-plugin-settings-inline-css”); var htmlDivCss=””; if(htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; }else{ var htmlDiv = document.createElement(“div”); htmlDiv.innerHTML = “” + htmlDivCss + “”; document.getElementsByTagName(“head”)[0].appendChild(htmlDiv.childNodes[0]); } /****************************************** – PREPARE PLACEHOLDER FOR SLIDER …
The search result includes a link to the page which is also named “Classes” and contains a Revolution Slider.
My site only has pages and not posts so its not clear how the Excerpt workaround mentioned in this community post https://community.theme.co/forums/topic/search-results-showing-revolution-slider-code/ would apply in my case.
I am using the following:
Wordpress 4.5.1
Theme X 4.4.2
Revolution Slider 5.2.4.1April 28, 2016 at 3:17 am #903683
P CParticipantThis reply has been marked as private.April 28, 2016 at 3:05 pm #904640
JadeModeratorHi there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
April 29, 2016 at 9:30 am #905732
P CParticipantThis reply has been marked as private.April 30, 2016 at 1:52 am #906620
ChristopherModeratorHi there,
Please follow this link and enable excerpt field for pages https://theme.co/community/forums/topic/page-descriptions-dont-show-in-search-only-for-blogs/#post-309082
Hope it helps.
April 30, 2016 at 3:09 am #906691
P CParticipantHi Christopher,
Thanks for the link to the post which explains how to implement Excerpts for Theme Pages. This resolved my problem of revolution slider (RS) code coming up in the search results.
It would be nice to know why the issue occurs in the first place because implementing the Excerpts workaround involves adding an alternative description on the specific page which includes RS. In addition it should be said that not all pages which include RS display this search results problem which suggests that something about the way a page is constructed leads to the issue occurring. Can you share more information?
Also can you let me know how to include the standard “Read More” link that appears under normal search results which is now not showing for the page where I have enabled an Excerpt.
Many thanks for you help in resolving this problem.
April 30, 2016 at 11:13 pm #907446
Rue NelModeratorHello There,
The read more link will only appear if the excerpt is being displayed. On normal pages, there will be no read more links because it is displaying the full content.
The RS code displaying on the page when you do no have a page excerpts, that happens because WordPress generates an excerpt automatically by selecting the first 55 words of the content and since RS code were place at the top of the content, that is why you have seen the code.
Hope this explain it briefly.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-903676 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
