I have been working on a full integration of fullpage.js into Visual Composer for WordPress. This allows to easily build fullpage layouts, with different pages and full slide capabilities. Also added iScroller functionality, to allow overflow content to work nicely on certain pages. All of this is working with simple drag & drop :) and can be used by any unexperienced user.
I am currently cleaning up the addon, but I am not sure yet if I will offer it as a commercial addon or keep it for my internal projects only :)
Will post a video later this week.
Cheers
Alex
Visual Composer for WordPress provides many ways to extend its functionality. There are already many add-ons available for this dynamic page builder, but its easy to do the extending yourself, by following the hints in the documentation ;)
In this small tutorial we are adding a “type” field to allow a special css class to be added to each of our row containers.
New Visual Composer element properties can be easily added by using the vc_add_param function. See documentation for more information. In our case we are adding a property to the vc_row element.
Continue reading Extending the Visual Composer Row element with a new property
In a perfect world all current browsers would allow the usage of WebRTC natively, but that is as always not the case ;)
“WebRTC (Web Real-Time Communication) is an API definition drafted by the World Wide Web Consortium (W3C) that supports browser-to-browser applications for voice calling, video chat, and P2P file sharing without the need of either internal or external plugins.” – Wikipedia
I am working on a new website for a customer and we are using the WPLMS (WordPress Learning Management System) as a foundation. The packaged theme is based on Bootstrap.
The theme provides its own page-builder, but we prefer to use Visual Composer, as we built some custom VC-Addons to ease future page updates for our customer and custom content integration. Visual Composer provides some nice full-width addons, which are not working with the current theme layout. I decided to use a custom page template to allow Visual Composer to take over, where needed :) Continue reading WordPress, WPLMS, Visual Composer and full width content
The Contact Form 7 for WordPress is a nice simple plugin to build contact forms fast. But when it comes to making it completely multilingual it lacks a bit.
I am currently creating a website with 13 different languages, that would mean to create the same contact form 13 times, not really practical :)
I am translating the form labels on the fly with some javascript magic, but for the messages I had to go a bit deeper.
1 2 3 4 5 6 7 8 |
public function message( $status ) { $messages = $this->messages; $message = isset( $messages[$status] ) ? $messages[$status] : ''; $message = $this->replace_mail_tags( $message, true ); return apply_filters( 'wpcf7_display_message', $message, $status); } |
1 2 3 4 5 6 7 8 |
public function message( $status ) { $messages = $this->messages; $message = isset( $messages[$status] ) ? $messages[$status] : ''; $message = $this->replace_mail_tags( $message, true ); return __(apply_filters( 'wpcf7_display_message', $message, $status ),'textdomain'); } |
1 2 3 4 5 |
$contact_form_msgs = array( 'msg_1' => __('Your message was sent successfully. Thanks.','textdomain'), 'msg_2' => __('Failed to send your message. Please try later or contact the administrator by another method.','textdomain'), 'msg_3' => __('Validation errors occurred. Please confirm the fields and submit it again.','textdomain'), ); |
Cheers
Alex
WPML for WordPress is a powerful plugin to build a multi-language setup. But it still comes short in some areas, especially when it comes to a custom integration into plugins or when using custom post-types.
Normally this function should return the id of the linked translated content, but has not worked for me in some cases (especially when AJAX is involved).
1 |
icl_object_id( $id, 'custom_post_type', false, $translation_lang ); |
A simple SELECT helps to get that id yourself :)
1 2 3 4 5 6 7 8 |
// original_id - main post id // $translation_lang - translated language code ... de, nl ... global $wpdb; $translation = $wpdb->get_results("SELECT * from wp_icl_translations where trid = (SELECT trid from wp_icl_translations where element_id = '".$original_id."' and element_type='post_page') and language_code='".$translation_lang."'"); $post = get_post($translation[0]->element_id, ARRAY_A); |
Bootstrap can not be added directly to the admin of a plugin, but you can wrap your plugin in a container and compile the Bootstrap CSS to use it as a wrapper.
I do my compiling using SimpLess
In the past you could do this using SimpLess directly (my-own-bootstrap.less).
1 2 3 |
.bootstrap-wrapper { @import (less) url( 'bootstrap.css' ); } |
This fails with the latest version of Bootstrap. But you can just paste the Bootstrap CSS into the LESS file and compile it that way.
1 2 3 |
.bootstrap-wrapper { // Paste Bootstrap CSS here } |
Run it through SimpLess and after that the new CSS can be enqueued in WordPress ! This also works nicely with themes from Bootswatch.
1 |
wp_enqueue_style( $this->plugin_slug .'-my-bootstrapstyle', plugins_url( 'css/my-bootstrapstyle.css', __FILE__ ), array(), $this->version ); |
Enjoy!
NGFB Open Graph+ Pro is currently the best plugin around, when it comes to well integrated OpenGraph integration into WordPress.
“NGFB Open Graph+ adds Open Graph, Pinterest Rich Pins, Twitter Cards, and Search Engine Optimization HTML tags to the head section of webpages.”