My issue is I have a drupal site and I am trying to create a Make Payment page. I was able to create the page but the issue I ran into is when I got the code for the button from PayPal and inserted it into the CKEditor. The CKEditor works when I put it in there but it wont publish.
Any tips would be helpful.
You probably have to set the Input Format for that text box to "Full HTML". Otherwise a lot of the HTML tags will be stripped out when it is displayed.
Related
I am designing a wordpress site for a friend. He wants the bio text to appear after clicking on necessary image. I noticed this is straight forward with Elementor Pro. I want to keep things free for him at the mo.
I am running the Astra theme with basic Elementor. I also know how to code so if you think this is a custom css job then let me know the work around. (I'm brand new to WP)
Many thanks
Try adding an onclick event to the image and write some java script to add text where you want or may be enable a hidden textarea ??
You can check this link below for reference
How do I add a .click() event to an image?
I have recently been working on WP site. And I have faced some strange issue. After I put some text in page and after I click update wp mess up the page by displaying html tags. Image below
Does anyone have faced same issue and how to fix it. Thanks
I'm going to take a wild guess that you've pasted your HTML code into the 'Visual' editor, and not 'text' - give that a go instead.
I'm using USP-Pro to let users post to a Wordpress blog. I have a textarea input in which they should put the main post content - the one that appears in the Wordpress admin editor. I'd like to keep the text formatting once they submit the form so I'm using CKEditor for that textarea.
CKEDITOR.replace('usp-content');
Checking the textarea with Firebug while I input the text shows that there actually is some HTML code inside, but when the form is submitted, in the editor I just see the raw text, without any formatting, which is pretty annoying because I lose all the spaces, the new lines and so on.
EDIT:
After various attempts I discovered that the problem is in the Wordpress function wp_strip_all_tags, inside the file wp-includes/formatting.php. I tried to comment it and it actually posted the content correctly with all the html in place.
Of course I can't just comment the whole function. How can I tell Wordpress to not use it when submitting such posts?
I am trying to use the Print This Section plugin with WP-Invoice and have been struggling for days now trying to figure out where the problem is?
With Both WP-invoice installed and working and WP Print This section also installed and working. On my Invoice page I have used
[print_this]
[wp-invoice]
[/print_this]
This displays perfectly the WP-invoice shortcode is read and processed and displays inside the Print this section box.
The problem is when I click the "Print This" button the page that opens up actually displays the text [wp-invoice] and not the actual invoice?
I have been all over the net and tried many things to do with nested shortcodes, from what I can tell I need a "do_shortcode($content)" somewhere but I can't figure out where?
A link to the sample invoice and problem:
http://www.yourtechally.com/client-login/invoice-online/?invoice_id=ef77a582808c0973b62d79f40059ce30
$code=do_shortcode('[wp-invoice]');
$shortcode='[print_this]'.$code.'[/print_this]';
do_shortcode($shortcode);
Try this, it could be the solution.
I'm creating a webpage using wordpress. I wanna insert some element in the form as hidden but the comment tag is not working. the wordpress is putting the comment tag within a 'p' tag.I used all methods of commenting.It is not working.
Can anyone tell me how to insert comments in a webpage using wordpress?
thanks i advance.
I take it you are trying to build a form using the add/edit page screen in wp-admin i.e. wp-admin/post-new.php?post_type=page? If so, you might never succeed in your endeavour, but I would give it a try using tinymce-advanced plugin, as you can turn a lot of the filtering of your source code off, and this might solve the problem. Try it, if not let me know and I will tell you how to manually add functionality to stop Wordpress from messing with html code in wp-admin text editor.