Wordpress Editor iFrame is not loaded - wordpress

I'm using wp_editor in a plugin to let users save some datas.
It's working fine on localhost, but on the website, I keep getting the same problem:
the editor is not themed and pre-text is HTML encoded.
Comparing the two HTML code, I discovered that on the website, what I see is the text area which is hidden in localhost.
Moreover, the iframe which is loaded in localhost and is supposed to theme and display the editor is not even loaded on the website.
Am I clear?
Any wonderful idea? :)

It seems there is a conflict between using the Simple Facebook Connect plugin and using the wp_editor function.
Deactivating the plugin made it work, I didn't look further...

Related

How to integrate TinyMCE with WPForms

I am trying to integrate TinyMCE with WPForms inside the WPForms Blog Post Submission plugin.
I inserted an HTML field with the code
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script>
tinymce.init({
selector: '#wpforms-421-field_7'
});
This kind of works as TinyMCE is integrated but in a horrible layout. Also the Images that are uploaded using this are not actually reflected in the actual page.
How do I integrate TinyMCE with WPForms correctly so that Images can be inserted in the text area and saved in the submitted posts?
You are asking a couple of different questions wrapped up in your request ... let me try to address each one:
1 - TinyMCE looks odd in the rendered page
The menus, toolbars, and statusbar of TinyMCE are part of the main web page that loads TinyMCE. As such if you are loading CSS onto the page that impacts these elements you can get to odd visual results like this.
I would use your browser's dev tools to sleuth out what CSS is impacting things.
2 - How do I upload images using TinyMCE?
You have not given us any details at all as to how you have tried to allow users to upload images via TinyMCE. There is an insert image option that you can expose via the image plugin but it requires some back end coding to receive the image and process it.
https://www.tiny.cloud/docs/plugins/image/#image_uploadtab
https://www.tiny.cloud/docs/plugins/image/#file_picker_callback
One additional question on this - Wordpress already has a media library and a UI to interact with that while using TinyMCE to create content - why are you trying to do something outside of WP's own media library?
It seems the author want TinyMCE in place of the textarea when creating Form for submission of Blog Post using WPForm.
Image: Source: https://wpforms.com/how-to-allow-users-to-submit-blog-posts-on-your-wordpress-site/
The problem is WPForm does not come along with the TinyMCE especially for the post content. You will probably get SCRIPT error or UI problem. You can use different plugins other than WPForm. Else write some custom code particularly for the Post Submission Addon found with WPForm.
You must to set Wpforms as "No styling" and check "Load Assets Globally"

Website content like " [sc_countdown year=”2019″ month=”1″ day=”1″ hour=”0″ minute=”0″

Why a website is showing the content like:
[sc_countdown year=”2019″ month=”1″ day=”1″ hour=”0″ minute=”0″ bg_color=”#” num_color=”#ffffff” show_second=”1″ css_animation=”” animation_delay=””]
The whole page is showing content like this. It is based on WordPress and using a theme. Does anyone know why is this and how to fix it?
This is a WordPress shortcode. My guess is there is some sort of countdown plugin that you need to install in order for this content to display correctly. Or maybe the plugin you're trying to use is deprecated, so the shortcode isn't working anymore, and is instead just displaying as plain text on your page.
There are plenty of other countdown plugins you can install that will hopefully work for you.

Get the Default Wordpress Slideshow to work with Shadowbox.js?

I am using the nivo slideshow included with Wordpress.
I put a video into the slideshow rotation, but it's using shadowbox or lightbox. It's an anchor tag, which links to the video. When clicked on, the video should load in a shadowbox pop-up, but I can't get it to work. I know you're supposed to put a "rel="shadowbox" in the img, but I don't know where to put that code.
I could also use the lightbox plugin, which I have, but it';s also not working.
Any thoughts? The website is bearcomservices.com.
This is for a client.
The image is of the WP admin bar. The "Slideshow" is what we're using. It lists in the page source as "Nivo". Not quite sure where it's from.
I also have ftp access, but I don't even know where to begin looking to edit anything to make this work. I've used ftp before, and I've used Wordpress, but never both...
Have u tried ShadowJS Plugin for wordpress??

Wordpress, excerpts and Image Links

Quickinfo:
I am using wordpress 3.5.1 with the latest version of the "FancyBox
for WordPress" -Plugin.
I use the more-Tag for all articles, making
only excerpts of them beeing shown on the start-page.
Facts:
In wordpress image-thumbnails included in the article are enclosed
in a link pointing to the image-url by default.
The Fancybox-Plugin makes such Links open the image in a jQuery Fancybox.
My Problem:
Sometimes I show images in the excerpts, too.
At this time theres happening an usability-flaw:
When clicking on the Image a fancybox will open, but people expect to get redirected to the full article instead.
Is anyone aware of a solution how to overcome this issue, maybee by using an other plugin, changing the structure of my articles or editing some php-files?
I don't know about the plugin you are using but I've always used colorbox. There's a plugin for it designed for wordpress and it allows you to specify which images you want to open in a jquery window.

Iframe implementation for Wordpress

Does anyone know a way to implement an iframe on a WordPress website. Every time I place the code onto the correct page, wordpress strips my code and the iframe breaks.
I was wondering if there was a plugin that allows iframe code to stay intact or if there is some form of shortcode to use.
I have tried:
[iframe url="http://www.youtube.com/embed/X3kLPtVjjhA" width="579" height="360"]
[fixiframe url="http://www.youtube.com/embed/X3kLPtVjjhA" width="579" height="360"]
and installed the "embed iframe" plug-in on my site but none of them seem to work.
I appreciate the help.
You don't need an iframe to post a youtube video, but to answer your questions about iframes in wordpess..
I am not sure what those plugins do. You can create page templates and have iframes in your pages without using any plugins.
Create a new page template and add the iframe in the php code for that page template. More specifically, create a copy of page.php and rename it. In the comments at the beginning of the file, edit the line with the template file name to Template Name: MyPage. Edit the page code and add iframe code where you need it. And select this template (MyPage) as the template for your page in page edit section wp-admin.
You can also add the embed code as meta information to page in wp-admin, and fetch this meta information in the code to display the iframe. In this way, you can use different iframes for different pages with a single template.
Let me know if you need help with this. I will post a complete solution
Why are you using an iframe to load a Youtube video, you should use the embed tag that they show under the video...
I have iframes in my wordpress for all the Facebook/twitter buttons and they work great!

Resources