Yuri Filus
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [Sublanguage] Issues with some repeater and groups fields from ACF pluginSeems that it was a conflict between my custom field name and the language code.
An ugly and temporary solution is to change class-admin-ui.php:601 to
$prefixes[] = str_replace('_', '\_', $this->get_prefix($language));Sure!
Add this in your javascript:
var $share = $(".post-share"); // Share buttons container if ( $share[0] ) { $share.hide(); var shareUrl = templateDir + '/include-share.php'; // Assign variable templateDir before script load <script>var templateDir="<?php bloginfo('template_directory'); ?>";</script> $.ajax({ type: "GET", url: shareUrl, data: { url: document.URL }, success: function(data) { $share.html(data) .slideDown(); // Some crazy effects } }); }And create include-share.php in the root folder of your theme:
<?php require_once( "../../../wp-load.php" ); echo do_shortcode('[ssba url="' . $_GET['url'] . '"]'); ?>Hope it helps!
I “solved” it by lazy loading the share buttons with javascript.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Inline CSSAdd
remove_action( 'wp_head', 'get_ssba_style' );in your functions.php
Viewing 4 replies - 1 through 4 (of 4 total)