Cforms II wordpress plugin display in popup in widget area - wordpress

I am unable to display cforms II in lightbox in sidebar. Is there any way to display cforms II in lightbox?
I found this code to display in pages but it is not working in widget area.
[formlightbox text="some text"]
<!--cforms name="Call Me Back"-->
[/formlightbox]
even i used this code in page. popup displaying but cforms not displaying
<?php echo do_shortcode('[formlightbox text="some text"]<!--cforms name="Call Me Back"--> [/formlightbox]'); ?>

me too trying to get t done with the form lightbox plugin, first, the shortcode you are using doesn't support any more so visit plugin author website for updated shortcode that works with new version 1.1.2, i m using this shortcode
[formlightbox_call title="FORM NAME" class="1362370254262"]FORM NAME[/formlightbox_call]
[formlightbox_obj id="1362370254262" style="" onload="false"][/formlightbox_obj]
but the result is nothing show in lightbox....any idea guys?????

Related

Wordpress contact form 7 shortcode isn't working

Title is pretty self explenatory. I use wordpress v4.9.8 with Rocked free theme. I installed contact form 7, no other plugins, and put the shortcode of the base form in a new custom_html widget in the footer-1 area.
Instead of the form, it just shows the raw shortcode. Also tested with twenty-seventeen so I dont believe its the themes fault.
shortcode: [contact-form-7 id="5" title="contact form 1"]
For anyone stumbling upon this from Google, it seems to be a bug in the latest contact form 7 update. The solution is to use the Text widget instead of custom html.
source: https://wordpress.org/support/topic/contact-form-7-not-working-in-footer-after-update/
use a plain text widget to display shortcode content.

Opening Wordpress Gallery from a link

Is it possible to open a wordpress gallery using an anchor tag so that the gallery appears on the same page in a lightbox? I cannot figure out how to do so. It seems like it should be such a simple thing to do but I have tried various plug ins and cannot work out a simple solution.
first, install this plugin
https://wordpress.org/plugins/anything-popup/
Then go to setting->anthing-pop there will be a shortcode http://awesomescreenshot.com/03561dd759
then click to edit it and put the [galley] shortcode
http://awesomescreenshot.com/09261ddfc0
http://awesomescreenshot.com/0ae61ddmb5
Now use the shortcode on click see screenshot
http://awesomescreenshot.com/0de61dej39
you can use the shortcode into post or page or in file like this
<?php echo do_shortcode('[AnythingPopup id="1"]'); ?>
thanks

Display language switcher button shortcode of WPGlobus plugin - Wordpress

I am using WPGlobus plugin to make website multi-language. A widget is displaying in widget area but I want to add language switcher button manually.
I search its short code to display language switcher flags. But not found any any shortcode.
Any best way to display buttons manually by shortcode.
Use this code on your wordpress theme . I hope will help you!
<?php the_widget( 'WPGlobusWidget' ); ?>

Ckeditor for wordpress on custom admin page

I have the plugin CKEditor for Wordpress installed and want to show a CKEditor on a custom admin page I made. I use the wordpress function wp_editor() to show it.
wp_editor("initial content", "uniqueid");
The problem is it shows a completely white editor instead of the CKEditor (so: a large white rectangle with a HTML and Visual above). It produces the following html on my page (I left out the "HTML" and "Add Media" button):
<div id="wp-uniqueid-wrap" class="wp-editor-wrap tmce-active"><link rel="stylesheet" id="editor-buttons-css" href="/wp-includes/css/editor.min.css?ver=4.1.1" type="text/css" media="all">
<div id="wp-uniqueid-editor-tools" class="wp-editor-tools">
<a id="uniqueid-tmce" class="hide-if-no-js wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">Visual</a>
</div>
<div id="wp-uniqueid-editor-container" class="wp-editor-container">
<textarea class="wp-editor-area theEditor" rows="10" cols="40" name="uniqueid" id="uniqueid"><p>initial content</p></textarea>
</div>
</div>
Only when I click the "Visual" tab I get the CKEditor. Only then does it look exactly like the one in my regular admin pages (Posts and Pages).
So, my question is what should I add to my custom admin page or to my custom functions to have the CKEditor appear on a custom admin page like it appears on the "edit post" and "edit page" pages, without the user having to click the Visual tab to show the editor and its content?
Or, the other way around, which code is added to the regular "edit post" and "edit page" pages in order for the CKEditor to show up normally?
EDIT:
I managed to get it work partly. There is still something bugging me.
I added the following after the wp_editor() call:
<script>
window.onload = function(){
CKEDITOR.replace( "uniqueid" );
};
</script>
Now I see the editor.
I had the same issue with wp_editor() not displaying multiple TinyMCE editors on custom fields in Wordpress, as they all had the same class - so I added both 'wp_create_nonce($name)' and 'wp_create_nonce($this->id)'
<?php wp_editor($value, 'editor-'. wp_create_nonce($name) . wp_create_nonce($this->id) .'', $settings = array('textarea_name' => $name)); ?>
The nonce is generated based on the current time, the $action argument, and the current user ID.

Wordpress Plugin Shortcode Disturbs Page Content Put Alongwith it into the Editor

I have created a plugin with short code now when I access the plugin through short code it works fine issue is that when I put some text above the short code that text goes below the plugin when i view the page.
Here is code that I put into wordpress editor:
<p>Unlock your device safely in 3 steps</p>
[CUSTOMSLIDER]
you can see the plugin shortcode is on second row but static text is on first row but when I will view the page the text goes below the plugin. here you can see its view. you can see the slider is at top and the text is below slider though these were opposite in original source.
in your custom plugin, instead of:
echo "content";
change that to:
$variable .= "content";
return $variable
from:
http://wordpress.org/support/topic/shortcode-moving-to-top-of-entry-content

Resources