-
AuthorPosts
-
September 18, 2017 at 1:28 pm #853381
I use a plugin with shortcode. The plugin works beautiful when I insert the shortcode using the default text editor. But when I use the theme editor I get all kinds of problems.
The first problem was caused by avia-textblock that inserted paragraphs everywhere in my javascript code. I edited /themes/enfold/config-templatebuilder/avia-shortcodes/textblock.php as instructed in another thread. Now I got that working as I am able to insert my shortcode in a textblock using the theme editor.
Next problem appears when I insert my shortcode in a textblock and put that textblock inside a color section. What happens the is that brackets [] and probably more things gets replaced: BMLTQuickSearch.prototype.m_weekday_long_name_array = & # 091;& # 093;;
& # 091; and & # 093; should be brackets.
This happens all over the script of course. My guess is that something happens inside /themes/enfold/config-templatebuilder/avia-shortcodes/section.php as the script works outside of the color section. I don’t have a clue of where to start looking.
I also tried using the code block with different settings but that doesn’t work either.
My shortcode can be used with bracket like [[bmlt_quicksearch]] or like HTML comments <!–bmlt_quicksearch–>. Of course I have tried them both.
I’m looking forward to some help here.
Thanks,
Peter- This topic was modified 7 years, 3 months ago by Jimmy-K.
September 19, 2017 at 6:35 am #853706Hey Peter,
Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardSeptember 19, 2017 at 6:40 am #853710Thanks you for your answer. Please have a look at the site. Login detals are supplied in rpivate.
September 21, 2017 at 8:39 pm #855032Hi,
Reported the issue to our developers.
I am not sure when that can be solved or how – but I have not seen it also previously.
I know that people are using shortcodes inside colorsections ( I am also ) and with no problems, so I am not sure why it does get replaced for you to be exact.Best regards,
BasilisSeptember 23, 2017 at 11:46 am #855775Still no solution to this and awaiting answers from the develepoers. However I tried a workaround:
I copied the source code from a working page and inserted that code in to a page using default texteditor and got the shortcode working and the page looks good on computer.But for mobile view the background image is not showing up, the background is all white. I can see when loading the page that the background image shows up for som milliseconds and then something happens and it turns white. Any one got the same problem?
Getting closer to a solution.
/ PeterSeptember 24, 2017 at 6:57 am #855955Hi Peter,
We’re still not sure what is causing the shortcode to disappear, but I tried to reproduce your latest problem with the background but I am unable to using iphone6/chrome. In what device/browser are you getting that problem?
Best regards,
RikardSeptember 24, 2017 at 11:14 am #856018Thanks for your reply. I get it in all browsers and phones, however I found a workaround for it so I got it working and we don’t need to focus on that. But I still would like a solution to the initial problem.
Best regards,
PeterSeptember 25, 2017 at 6:38 am #856336Hi,
What happens if you use the code block element? This element has lesser content filters compare to the text block.
Best regards,
IsmaelSeptember 25, 2017 at 11:04 am #856419Hi.
I have tried to use code also. And inserted my shortcodes in different ways using html-markup or brackets. No difference at all. The same problem appearde when i inserted shortcode in to a textblock, but in another post I gound a workaround so I changed the textblock php. But something needs to be changed also in the color section code.
Best regards,
PeterSeptember 26, 2017 at 6:29 am #856795 -
AuthorPosts
- You must be logged in to reply to this topic.