Wordpress shortcode adding <br/> and <p> in text - php

I'm trying to use a popup plugin for wordpress (https://wordpress.org/plugins/anything-popup/). Problem is, it's adding breaks to my text when I try to use the shortcode in the middle of a sentence.
See here: http://www.universaltheosophy.com/secret-doctrine-lexicon/
What should read:
"The Secret Doctrine Lexicon is a project set up by..."
ends up with a rogue paragraph break. Here's what I see in the source-code:
<p style="text-align: justify;"><i>The Secret Doctrine<br />
<style type="text/css">#AnythingPopup_BoxContainer2 ....
Now, I've tried disabling wpautop and it didn't make any difference. I'm not versed in php, so I have no idea how to edit the plugin itself if that's where the problem is. Anyone willing and able to help me out with this? (the plugin has virtually no support)

Related

How to customize/style woocommerce account page

As you can see here: https://wildlatina.com/my-account/
the white body is not inside the page and there is not margin padding for the login form? what did I do to mess this up? I'm a beginner when it comes to editing with css so please go easy on me. Just would like the account page to look nice.
hi please login to your cpanel or ftp then open your theme style.css
find the css rule below
.full-width-content .container.grid-container {
max-width: 100%;
}
and comment the rule like this
.full-width-content .container.grid-container {
/*max-width: 100%;*/
}
and it will look like this
You have used the Wordpress theme GeneratePress. In that theme, if you have the class container and grid-container on an element, the width of that element is reset from 1080px to auto - which, in your case, means it fills the width of the page. So, your DIV with id "page" is changed from 1080px to the width of the page.
You should remove the container class from this DIV. You may then have to add some styles back to get the final effect you desire.
Hello You Can Style It By Using Some Plug-ins Which present at plug-ins>new one
for example you can go with this plug-in
https://wordpress.org/plugins/woocommerce-login-and-registration/
If You Cant Style It Please Post The Error You Are Getting Neatly And Most Probably You Can Use Wordpress Login For Woo-commerce But If You Are Really Interested To Use Only That You Can Customize It From CSS Or You Can Use Plug-ins Which Do The Same But No Coding Knowledge Required To Do It From Plug-in Because Everything is Graphically Done And whatever The Coding Part Is That Will Be Take Cared By Plug-in Itself So Maximum Use Plugins So It Could Better In Development
1) you can add this css add into theme or child theme style.css
.hfeed.site.grid-container.container.grid-parent{
width: 80%;
}
2) you can remove container class Here:
<div id="page" class="hfeed site grid-container container grid-parent">
my suggestion is second option is right

Editing Paragraph tag with a default style values

I'm using WordPress to run my website, but recently I noticed something strange with my single.php. I found that all my p tags has a default style:
<p style="font-size: 12px;line-height: 150%;"></p>
I want to style my font-size paragraph but its work only with !important value. So, How I could change this default style? I want to remove it form p tag. I searched my functions.php but I found nothing.... maybe its a default value form WordPress core files?
I know I could remove it with jquery or style it with css but the ideal solution would be to remove that extra code ""font-size: 12px;line-height: 150%;"" I really dont need it!
I saw that other wordpress theme have also a default value for p tag so it may be wordpress!!! But How I could find it and change it?
Any suggestions?
Solved... I found the code responsible for those css values.... Thanks you all for your replays... hope the best for all of you!!!

Wordpress Shortcode Auto-P Issue

I am new to Wordpress and am implementing a shortcode. My shortcode is super simple and the expected output is HTML5-compliant:
add_shortcode( 'my_code', function( $attributes ){
return '<div></div>';
});
When this gets emitted, I get the following HTML:
<a href="#">
<div></div>
<p></a>
As you can see, there appears to be auto formatting going on. I have followed the advice here, here, and have installed this plugin, all to no avail. I am looking for the magic secret that is making this formatting occur. Any assistance would be appreciated!
I cannot recreate the problem, after running the example i get the right output:
<div></div>
( the original HTML source, not the modified one that console shows, the HTML panel in console shows a live view on what the browser is showing )
The problem is when a shortcode output is wrapped inside paragraph, then the output is something like:
<p>Some text <div></div></p>
The blame for this broken HTML ( in HTML5 <div> inside <a> is permitted, but <div> inside <p> is not ) is on WordPress filter wpautop. That filter encloses text with <p> tag, replaces double line breaks with <p> tags, and single line breaks with <br /> tags. If the shortcode is right after the text its output will be part of the paragraph. To avoid that just put the new line between the text and the shortcode.
Some text
[my_code]
Some text
As I said I am a newb with Wordpress and I am learning the ropes here. It turns out the problem is due to a plugin. I deactivated all my plugins and the problem went away. So, lesson learned: if you have a really weird problem, disable plugins first to see if that is the source. Thanks to #Danijel for helping me out with this!
EDIT: FWIW, the plugin that causes this issue is this one (v1.0.18): https://wordpress.org/plugins/smpl-shortcodes/

Wiris math editor

I need help. I installed the Wiris math editor, but it does not work. Creating math works well, but the display does not work.
I know why, but I do not know how I repair it: I use free hosting which paste advertisement into the website's URL.
I want the URL to look like:
http://u12.hys.cz/tinymce/js/tinymce/plugins/tiny_mce_wiris/integration/showim‌​age.php?formula=3b1e36f0f64404ca46029248411a14da&cw=20&ch=13&cb=12&text=55
while my provider changes it to:
http://u12.hys.cz/%3Cdiv%20style=%22%20background-color:#; font-size: px;"><div class="trop"><strong>Magnetická </strong>kostka NeoCube na prodej</div></div>/tinymce/js/tinymce/plugins/tiny_mce_wiris/integration/showimage.php?formula=3b1e36f0f64404ca46029248411a14da&cw=20&ch=13&cb=12&text=55
Note that the provider added the following part
%3Cdiv%20style=%22%20background-color:#; font-size: px;"><div class="trop"><strong>Magnetická </strong>kostkaNeoCube na prodej</div></div>
Is there anything I can do?
This issue is not related to WIRIS plugin but to an advertisment your server provider is including in the image URL generated by our plugin. We are not sure when does your server provider modify the image link but we output the image link in //integration/createimage.php where you could probably remove the advertisment.

WP Better Emails Plugin - HTML Template issue

I'm having a problem with styling the email thru the HTML Template of the WP Better Emails Plugin.. I'm receiving the email alright but the style I placed under the Plain-text Template textarea is not working.. This is the code:
<html>
<body>
<p style="background-color: Gainsboro; color: DodgerBlue;">%content%</p>
</body>
</html>
It's a very simple code for now to test this feature. But it's not showing the background color and text color on my email..
EDIT:
I just found out that this plugin has this rule: HTML emails are not wrapped if they are already "text/html".
Unfortunately, I really need to have <ul> and <li> tags on my email without the style yet or else they'll look bad since there's no way for me to arrange or style those lists without these tags that I can target with css. How can I get away with this rule? Any idea?
Have you tried Contact Form 7. Its a contact form plugin for Wordpress and quite powerfull.
here is link:http://wordpress.org/plugins/contact-form-7/
Hope this help you. :)

Categories