Forum Replies Created
-
AuthorPosts
-
Hi,
I have tried, but it doesn’t help me. How can I use that solution?
I should insert the following code just into an article (in the Text mode) or to the function.php? :function xml_shortcode( $atts, $content ) { $filter = array('<br>','<br />'); $content = str_replace($filter, '', $content); return "<code><pre>" . esc_html($content) . "</pre></code>"; } add_shortcode( 'avaxml', 'xml_shortcode' );
thanks.
Hi,
when you look at the same page now (in private) and open the “Display as code” accordion, you will see
<doc> <s>some text </s> <s> some text </s> <s>some text </s> <s>some text </s> </doc>
The problem starts when you edit the page, open this accordion and will see only interpreted code (in visual mode). OK, you click on text mode, but the
<doc>
tags have disappeared.I would need a solution which works also with repeating editing page (e.g. I would add some code or text on the page)
Try to create a page with the code (above) and then twice edit that page, the code will be interpreted during second and following editing.
Please see this screenshot confirming that I’m using the text tab:
https://snag.gy/WDswZg.jpgThe code still gets interpreted instead of displayed. check the result here: https://www.lexicalcomputing.cz/corpus-structures/#toggle-id-1
Can you please help me resolve this? It prevents me from adding more content to my website.
Thank you.
Dear Victoria,
thank you for your advice. I added this code according to your advice:
https://gist.github.com/anonymous/dd343aa2ecf83ecdc3665dd4af5e0652but after saving, the code gets interpreted again. You can see the result on https://www.lexicalcomputing.cz/corpus-structures/#toggle-id-1
Can you please help?
OK, but how to combine a code block with an accordion content (in the Avia Layout Builder)?
See the following page
shortcode
<doc pub="1977">
is OK…Now please edit this page. When you open the accordion with the shortcode, it was interpreted and the code disappeared.
I cannot find any sustainable solution.
I inserted in in Text tab. The code is interpreted in admin interface (see the screenshot above), but it is OK on the web page.
The problem lies in the fact that it is differently displayed in admin interface and commonly on the web page.
So, the shortcode works, but it is confusing because I see something else than on the web page.I added my code above and saved. It was OK until I wanted to edit the page again. See the screen of the current code (it was interpreted by the editor in spite of the “avia block” tags around): https://www.sketchengine.co.uk/wp-content/uploads/code-interpreted.png
(the screen shows that I cannot edit this page now and then save it because I would lose the original code.)
hi Vinay,
I am sorry, but we have had still problem with it. We use code tags and when we save it, it is OK. However, after next saving (making some changes and save), the shortcode tags are interpreted and are not preserved.
Could please insert following code to our website and try a few times to modify including saving the page. Here is the testing webpage: https://www.sketchengine.co.uk/shortcode/Shorcode:
<doc> <p> <s>some text </s> <s> some text </s> </p> <p> <s>some text </s> <s>some text </s> </p> </doc>
(temporary login credentials are attached in private content)
I suppose this way can be faster. If your way works, we will use it on other pages.
Thank you in advance
We have solved ii in another way.
January 13, 2017 at 11:17 am in reply to: Advanced layout builder – problem with the format of quatation marks #733067Hi,
it is the same outside ALB too. However, why should be a problem with standard double quotes? “
December 23, 2016 at 3:50 pm in reply to: Advanced layout builder – problem with the format of quatation marks #727980Hi Yigit,
thanks for your tip, unfortunately it doesn’t help. Two single quotation marks are converted to “ too. We need the format of straight double quotes in order a user can only copy that example into our software where only these types of quotes work.
October 31, 2016 at 6:44 pm in reply to: Avia layout builder problem with displaying source code #706391OK, I thought that related only to the extra one-character space mentioned in my previous post. I hope that they fix it in the near future. Please let me know when they fix it.
Best,
OK, I have tried it and thought it works but the plugin cannot solve dependency plugins and modifications have already performed on the website. It does not work correctly.
Is any other possibility how to reduce the size of css and js?
I am thinking about that we use a child theme, so this theme is loaded after loading the original theme, isn’t it? Does it mean that both of themes (original and child) are loaded and therefore it doubles the size?
Thank you for your tip.
October 25, 2016 at 5:13 pm in reply to: Avia layout builder problem with displaying source code #703877Hi,
I am sorry, but it does not work again. I did not do anything else, but the <align> tags have disappeared.
Look at https://www.sketchengine.co.uk/user-guide/user-manual/corpora/setting-up-parallel-corpora (below “English – 01_dog.txt)The original code looks as at https://old.sketchengine.co.uk/setting-up-parallel-corpora/ (below “English – 01_dog.txt)
You have credentials to our website and you can see the revisions on this website.
October 12, 2016 at 10:39 pm in reply to: Avia layout builder problem with displaying source code #698555October 11, 2016 at 4:50 pm in reply to: Avia layout builder problem with displaying source code #697970Perfect! and for removing the extra one-character space in the first line, you can small space before the first character in the first line of each code block. For example, (before align)
English – 01_dog.txt
<align> I have a nice dog.
October 11, 2016 at 4:30 pm in reply to: Avia layout builder problem with displaying source code #697958Great! It works. For the perfectness, is there a possibility how to remove an extra space in the first line of each Code block?
Look at: https://www.sketchengine.co.uk/user-guide/user-manual/corpora/setting-up-parallel-corpora/
Corpus 1:
<s> <align>
October 11, 2016 at 3:13 pm in reply to: Avia layout builder problem with displaying source code #697906Hi,
it looks hopeful. Could you please write where I can find these options?
Thank you.
Best wishes,
Michal
October 11, 2016 at 11:36 am in reply to: Avia layout builder problem with displaying source code #697739As I have sent it early, I am including.
October 10, 2016 at 7:38 pm in reply to: Avia layout builder problem with displaying source code #697525Hi,
I have read and tried it, but it does not help me. I am afraid that the problem really causes the Avia Layout Builder.
1. The source code works in another theme (I have inserted it in HTML according to instructions at your link)
https://old.sketchengine.co.uk/setting-up-parallel-corpora/2. The source code works on our web without Avia Layout, see following page: https://www.sketchengine.co.uk/source-code/
Firstly, I have inserted the code as HTML, secondly, I have used the plugin Enlighter – Customizable Syntax Highlighter, both of these way work as you can see.Please advise me.
October 7, 2016 at 4:18 pm in reply to: Avia layout builder problem with displaying source code #696575Hi,
when I set Live Preview e.g. of Twenty Sixteen so yes, the problem is remaining. (I’m not sure if I set this theme and then would want to return the Enfold theme that everything would be ok, the websites are available to our users)
But you can see that on our previous websites this works perfectly with Default theme or another one:
https://old.sketchengine.co.uk/setting-up-parallel-corpora/October 5, 2016 at 6:38 pm in reply to: Avia layout builder problem with displaying source code #695699Hi,
thank you, I see your tags. Unfortunately, it does not help me. Just as with tags
<code></code>
in my previous post, the tags<pre> </pre>
have disappeared immediately after saving the page in Avia layout. Look at https://www.sketchengine.co.uk/wp-content/uploads/pre_tag.png (or the screenshot in my previous post).- This reply was modified 8 years, 2 months ago by mjakubicek.
October 4, 2016 at 11:54 am in reply to: Avia layout builder problem with displaying source code #694971Hi,
could please attach these tags I cannot see them. I use
See the screenshot at https://www.sketchengine.co.uk/wp-content/uploads/code_block.pngAll the best,
September 27, 2016 at 1:04 pm in reply to: Avia layout builder problem with displaying source code #692207Thank you, but I would need to display the source code including the tags, not use them as standard HTML tags. This is what should be displayed.
<s> <align> This is the first sentence . </align> </s>
like at https://old.sketchengine.co.uk/setting-up-parallel-corpora/#Example
However, the HTML tags in Avia layout, despite the fact that they are wrapped in
<pre>, <code> or others
, they still process texts, e.g. text in<s>
and</s>
iscrossed outinstead of displaying following<s> this is a text in tags </s>
I hope I have explained the problem clearly if not please tell me.
I have switched your user role to administrator.
September 21, 2016 at 11:03 am in reply to: Avia layout builder problem with displaying source code #689724One more relating problem, unfortunately, it does not replicate again.
E.g. at https://www.sketchengine.co.uk/documentation/corpus-querying (the whole text from the Searching for structures headline up to the bottom of the page, was crossed out on 19th September) but today it is OK. Also here, we use source codes and there could be some problem with tags as <s> and <s/> and others that are problematic on other pages (see above).
September 21, 2016 at 9:46 am in reply to: Avia layout builder problem with displaying source code #689690Hi,
I am sorry, but I have already sent you the credentials on 9th September. In a minute, I am resending you them again.
…OK, maybe you did not see them because I sent only private content and did not attach it to a post in this forum.- This reply was modified 8 years, 3 months ago by mjakubicek.
September 20, 2016 at 4:08 pm in reply to: Avia layout builder problem with displaying source code #689374Hello,
detected any error?
-
AuthorPosts