June 12, 2019 at 20:15 UTC - Views: 35 #59864
Wishing to put a slider on the home page only, I put the shortcode [metaslider id=”2636302″] into the Header Image section in the field labeled Image HTML Replacement and checked the box to display only on the front page.
Works quite nicely. However, the shortcode is now displayed on every page of the site.
Have I screwed up somehow or is this a “feature?” <grin>
How do I suppress this display of the shortcode?June 12, 2019 at 20:55 UTC - Views: 33 #59865
The shortcode appear to be inserted at the top of the body tag before the wrapper…
I have no idea how you managed to do that as I dont know of a weaver option allowing you to do that 🙂
Can you think of anything you did while attempting to insert the shortcode in various places?June 12, 2019 at 21:04 UTC - Views: 30 #59866
I only inserted the shortcode in one place!
So it’s a feature!June 12, 2019 at 21:17 UTC - Views: 28 #59867
I just did a search on the database and the shortcode was found in only one table (wp_options) in one place.June 12, 2019 at 21:28 UTC - Views: 28 #59868
A shortcode inserted in the header image HTML replacement does not show there (at least for me).
To be sure, remove the shortcode from the header image HTML replacement and see if it also disappear from the top as text.
also, paste here the version of the theme as well as weaver plugins you are runningJune 12, 2019 at 21:56 UTC - Views: 24 #59869
We has met the enemy and they is us! – Pogo
I don’t know how better search replace missed it, but I did find a second copy of the shortcode in the advanced options>head section
Remove it and all is well.
Bruce’s reputaion for pristine meticulous code remains intact! It’s not a feature.
EdJune 12, 2019 at 22:03 UTC - Views: 20 #59870
I will need to double check the head section then, because when I looked it was not in the head but in the body, so there may be a bug after all 🙂June 12, 2019 at 22:05 UTC - Views: 18 #59871
It’s at least in an area where the shortcode is text and not executed.June 12, 2019 at 22:07 UTC - Views: 17 #59872June 12, 2019 at 22:12 UTC - Views: 16 #59873
@weaver, I can confirm that when adding content to the Advanced Options > Head section (either of the two), the content ends up at the top of the Body tag not the head tag.
Is that normal?June 12, 2019 at 22:14 UTC - Views: 14 #59874Private Reply
scramblerModeratorThis reply has been marked as private.June 12, 2019 at 22:19 UTC - Views: 12 #59875June 12, 2019 at 23:50 UTC - Views: 11 #59876Private Reply
scramblerModeratorThis reply has been marked as private.June 13, 2019 at 00:07 UTC - Views: 8 #59877
You must be logged in to reply to this topic.