shortcode placement
-
The reviews appear at the top of the page, no matter where I place the SC in the page. Is there a fix for this?
https://www.ads-software.com/extend/plugins/tripadvisor-shortcode/
-
Hi can you let me know what version of wordpress you are using and what theme.
If possible could you give a link as well to take a look at what is happening.
I’ve not tested the plugin in the latest couple of version of wordpress but I’ll take a look over the weekend and try and replicate the issue.
thanks
KevinHere’s the link to the page, https://www.roseglassgallery.com/reininger/tripadvisorsc/
Here’s the code so you can where the shortcode was placed:
<h3>Join us in our Tasting Room!</h3> [one_half] <img class="size-medium wp-image-4096 alignleft" style="border: 1px solid black;" alt="Reininger Tasting Room" src="https://www.roseglassgallery.com/reininger/wp-content/uploads/2013/07/33u4aTRqV6Ue1RaCNNNl3vdACTWhmLt_XEj_nD3DqWg-300x225.jpg" width="300" height="225" /> ? ? ? ? ? ? ? <strong>Visit our winery daily: 10 am to 6 pm</strong> Holiday Hours: Thanksgiving Day:? Closed Christmas Eve:? 10 am to 2 pm Christmas Day:? Closed New Years Eve:? 10 am to 2 pm New Years Day:? Closed July 4: Closed [/one_half] [one_half_last] [map width="250" height="250" zoom="13" type="ROADMAP" style="border: 1px solid black;] [marker address="5858 Old Highway 12 Walla Walla, WA 99362"]Reininger Winery[/marker] [/map] ? 5858 Old Highway 12 Walla Walla, WA 99362 Phone 509 522-1994 FAX 509 522-3530 <a href="mailto:[email protected]">[email protected]</a> REININGER Tasting Room ?<a title="New Highway 12 and W Highway 12 (Vintage Loop) Map for West End Wineries" href="https://2.bp.blogspot.com/_N7BAXh0Zsmo/TCPKlBKU2LI/AAAAAAAAAVE/ub6ZniTiz6E/s1600/New+highway+12+map.jpg">Map</a> Six miles west of Walla Walla on Highway 12 - Exit onto Spalding Road - right onto the Old Highway 12 - first building on the right. [/one_half_last] [caption id="attachment_4113" align="alignright" width="300"]<a href="https://www.roseglassgallery.com/reininger/wp-content/uploads/2013/07/266-5_Reininger.jpg"><img class="size-medium wp-image-4113" alt="Reininger Winery Tasting Room" src="https://www.roseglassgallery.com/reininger/wp-content/uploads/2013/07/266-5_Reininger-300x200.jpg" width="300" height="200" /></a> courtesy of https://www.winetrailsnw.com/wineries/reininger-winery[/caption] <a href="https://www.winetrailsnw.com/wineries/reininger-winery">Wine Trails NW</a> says of our Tasting Room, "The Reiningers’ tasting room is more of a tasting pavilion, featuring a fusion of basalt harvested from the Snake River in northern Walla Walla County; reclaimed potato-shed wood; zinc-covered countertops, and finely crafted cabinetry. One particularly aesthetic touch are the vines intertwined around the perimeter of the tasting bar. This is a grand tasting room that invites all who trek here to linger longer and enjoy the stellar line-up of wines." <iframe src="//www.youtube.com/embed/bSVPZRQPAtA" height="225" width="300" allowfullscreen="" frameborder="0"></iframe> <a href="https://www.roseglassgallery.com/reininger/wp-content/uploads/2013/07/sMAWIq0ZboSy_WIWyCmYXl7TYPRfoXUljNugBC5x1w.jpg"><img class="alignright size-medium wp-image-4094" style="border: 1px solid black;" alt="Reininger Tasting Room" src="https://www.roseglassgallery.com/reininger/wp-content/uploads/2013/07/sMAWIq0ZboSy_WIWyCmYXl7TYPRfoXUljNugBC5x1w-225x300.jpg" width="225" height="300" /></a> <a title="Wine Bar creation" href="https://www.youtube.com/watch?v=bSVPZRQPAtA">Chuck Reininger speaks about the creation of the unique Tasting Bar.</a> [tripadvisorsc] TripAdvisor - <div class="TA_selfserveprop" id="TA_selfserveprop383"> <ul class="TA_links wQQTfPO" id="FTsTxNZx51T8"> <li class="ddo2QBWYAPd" id="0gBdJKkDC">15 reviews of <a href="https://www.tripadvisor.com/Attraction_Review-g60992-d282994-Reviews-Reininger_Winery-Walla_Walla_Washington.html">Reininger Winery</a> in Walla Walla </div> Yelp Reviews - <a href="https://www.yelp.com/biz/reininger-winery-walla-walla">https://www.yelp.com/biz/reininger-winery-walla-walla</a> <div style="width: 480px; background-color: #ffffff;"><form style="margin-bottom: 3;" action="https://visitor.constantcontact.com/d.jsp" method="post"><strong> Don't miss any exciting news. Join the REININGER email list.</strong><input style="font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 12px; border: 1px solid #999999;" type="text" name="ea" size="31" value="email" /> <input class="submit" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;" type="submit" name="go" value="GO" /></form><form style="margin-bottom: 3;" action="https://visitor.constantcontact.com/d.jsp" method="post"></form><form style="margin-bottom: 3;" action="https://visitor.constantcontact.com/d.jsp" method="post">We will not sell, rent or trade your personal information and you can unsubscribe at any time quickly and easily.</form></div> Join REININGER Winery at many festive events around the Pacific Northwest and beyond!?<a href="https://www.roseglassgallery.com/reininger/events">View events</a>
[Please use the code buttons – as is, your code may have been corrupted by the forum’s parser]?
Hi
thanks for that.
it looks like thee may be a conflict with another plugin somewhere.
could you tell me which one the [/one_half] plugin is to.
I’ll take a look over the weekend when I have time to try and solve it.
thanks
KevinThere are quite a few column shortcode themes/plugins. Here’s the one I use, https://themes.mysitemyway.com/awake/shortcodes/column-shortcodes/.
Kathy
Hi Kathy
thanks for that. I’m not going to be able to do much apart from give you a guess I’m afraid as it’s a paid for theme that I don’t have.
The best option will be to try and defer the shortcode from taking effect until after the page has completed rendering. We can do that through the use of a php buffer.
Not sure how much your are into hacking code but you can try this.
Open up tripadvisorsc.php in something like notepad++ (to help with line numbers)
On line 97 add
ob_start();
and on line 121 add
return ob_get_clean();
so your code should look some thing like:
), $atts ) ); ob_start(); ?> <script src="https://www.tr
and
</div> <?php return ob_get_clean(); } add_shortcode('tri
that should slow the shortcode operation down to after all the page has completed downloading and should stop it rendering at the top of the page.
It’s totally untested though as I don’t have access to the theme. But there should be a good probability of it working.
If you don’t feel comfortable hacking the code send me an email at kevin @ ypraise.com and I’ll send you an updated plugin zip over the weekend for you to install and try.
let me know how you get on
thanks
kevinThanks Kevin, I’ll give it a try. I really like the way your plugin shows bits of all the reviews and not just one link to all of them. I’ll let you know how it turns out.
Kathy
Hi Kevin,
I’m having much the same problem. I’m using the Blue Diamond purchased theme but I can’t see any conflictiion.
Here’s the URL for the page under construction.
https://69.195.124.109/~closdesg/le-chenin-gite/
Thanks a lotHi Pont
have you tried using the solution I posted above.
Unfortunately I am not able to provide any help with premium themes.
I am slowly going through all my plugins as some I have to checked for a while.
I may look at including the above tweak to help in this situation but I’ll not be able to test in your or any paid themes.
thanks
kevinSalut Kevin,
Tried your tweak. Work perfectly. Thanks.
Hi Pont
thanks for the update.
Kevin
When is this going to be added to the code?
I should not have to edit the plugin every time there is an update.Ignore this
I just found the buffering option
Thanks
George
- The topic ‘shortcode placement’ is closed to new replies.