I am creating Wordpress multilanguage site and using qTranslate plugin for that. For inserting the content, every language has its own visual/HTML input field within Wordpress TinyMCE editor. The problem is that editor "eats" my <span> tags, such as auto-formats <br> and <p> tags!
Also, I tried TinyMCE Advanced, but with no effect. After saving the page/post, <span> tags just disappear from content. Does anyone knows what cause this problem?
You might need to set Spans as valid_elements.
Related
I'm using Wordpress with TinyMCE.
What a piece of junk TinyMCE is!
TinyMCE reformats my HTML, including by removing all of the p tags. I've even chosen the wordpress option to have it to not do that. Doesn't work.
Sometimes, TinyMCE doubles sections of content or completely changes the HTML source to be totally broken.
How can I replace TinyMCE with TEXTAREA? I just want to type my HTML code in and not have it be damaged by the plugin.
How can I get a multilingual footer text in the WordPress Astra theme? I am using Polylang for translation and do not see an option to translate the footer somehow. The theme should be multilingual.
Have you tried with String translations under Polylang?
https://polylang.pro/doc/strings-translation/
The footer text might be available for translation there.
This does not seem to be possible yet. If someone finds out that it is, just add an answer and I will accept this one.
Wordpress Version: 4.9.7
WooCommerce Version: 3.4.3
WooCommerce has caused layout issues with the Cart & Checkout page. It's any WooCommerce page with a table.
The table with classes of:
shop_table shop_table_responsive cart woocommerce-cart-form__contents
is causing issues. The WooCommerce CSS for the table sets a width of 100%, however the actual width shows as 4870px. The theme's parent element width is set as 1100px.
Why is the table's width much larger than that set by the theme?
There are no CSS declarations after that overwrites.
There are no issues with the products page or product page.
You can always remove default WooCommerce styles, the risk is that you may use some. Anyway it worth the check:
add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
If this doesn't help, maybe post a link to the page so we can inspect the layout and CSS?
You might have unnecessary pre tag as a wrapper, causing the table to stretch:
<pre>[woocommerce_cart]</pre>
In order to remove it, you may install "Disable Gutenberg" plugin, then edit the Cart Page in Text tab, leaving only:
[woocommerce_cart]
I had the same issue. The root cause I found was caused by copy/pasting the short code from the woocomerce website directly into a visual editor (WPBakery Page Builder in my case).
The copy picked up the <pre> tag from the source and applied it when pasting, triggering a change of the style to preformatted without me noticing.
Two solutions to fix - depending on your Visual Editor and preference.
Simply changing back to the default Paragraph setting,
Highlight [woocomerce_cart]
Select Paragraph from the drop-down styles list
Update/Publish!
OR, Remove the <pre> tags manually
Change to a 'text' only view of the page code
Remove surrounding <pre> tags leaving [woocomerce_cart]
Update/Publish!
Sorry, can't embed images yet...
Image showing issue:
Image showing manual solution:
This should work for any other short codes pasted in as well, including [woocomerce_checkout] as mentioned in OP.
I bought a Template Monster WP Template in order to customize it. I want it not to have any "blog" structuring. What I mean by that is losing the author name, comments closed notification, sidebar presence in various pages. Does anyone know where I can find tutorials on this or any advise?
Maybe you could create child theme on top of Template Monster and override it
http://codex.wordpress.org/Child_Themes
This is what I do -
Open all of the theme's files in notepad++ or another text editor.
Use Chrome's inspect element to select the author name and element.
Let's say it is - <h1 class="author-title">Some Author</h1>
I will then select <h1 class="author-title"> and search all files for this in my text editor. My guess is that it will probably be in single.php
You can than delete or comment out the section and It will no longer appear on the page.
I recently started developing websites on wordpress. I have this problem with tinymce editor. When i write post and format content it looks how I want in it. But when I publish post and check that it looks really crappy.Then I called the stylesheet of tinymce editor on everypage of website. I must say there is change but it still looks bad.
How can I get content in exact formatted way as I see in the tinyMCE?
Thanks,
kiran
On the frontend the styles from your theme will be taking precedence over the layout and sizing of content.
In the administration section it will be using a default TinyMCE editor css file. This allows for Wordpress to easily support a variety of themes without making many changes.
So that leaves you with the potential inconsistency, which you have identified here.
Either you work with the WYSIWYG editor giving you an approximation or you could add the relevant styles from your theme to the editors CSS. This can be done using add_editor_style() DOCs.
Use this WordPress plugin to solve your problem.
Specific CSS/JS for Posts and Pages