Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.
    #853706

    Hey 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,
    Rikard

    #853710

    Thanks you for your answer. Please have a look at the site. Login detals are supplied in rpivate.

    #855032

    Hi,
    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,
    Basilis

    #855775

    Still 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?

    https://goo.gl/bjWEUq

    Getting closer to a solution.
    / Peter

    #855955

    Hi 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,
    Rikard

    #856018

    Thanks 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,
    Peter

    #856336

    Hi,

    What happens if you use the code block element? This element has lesser content filters compare to the text block.

    Best regards,
    Ismael

    #856419

    Hi.

    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,
    Peter

    #856795

    Hi,

    The brackets are filtered because they are used as the shortcodes’ wrapper. If we remove the content filters, we might break more things instead of fixing one. I think the best workaround is what you already did, copying the actual source code.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.