fourthelement
Forum Replies Created
-
I have just been running a few more tests and I have now disabled wp-media folder on the site that is not working. Strangely smush is now working? Would you know why the plugins work together on one site but not another? As far as I can see wp-media folder is an annual subscription and is not domain specific and smush is listed to work with wp-media folder on the downloads page.
No just those two, but it works fine on one site and not on another?
when I click the bulk smash button, which fails, and error is shown in the console:
Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) – https://life.fourthelement.com/wp-content/plugins/wp-media-folder/assets/js/modal-dialog/material.min.js.mapNot really sure why this would come up as I have wp media folder enabled over both sites on this multisite.
There is a warning – upload.php:135:203[blocked] The page at https://life.fourthelement.com/wp-admin/upload.php?page=wp-smush-bulk was not allowed to run insecure content from http://fonts.googleapis.com/css?family=Open+Sans+Condensed%3Alight&v1&ver=4.9.2.
There is also nothing in the debugger log.
Forum: Plugins
In reply to: [Multiple Featured Images] add as a background imagePerfect
many thanks
Forum: Plugins
In reply to: [WooCommerce] [product_category category=””]To my knowledge categories do not have ID’s?
I have now deleted the original category and added another it now seems to work?
Here is the shortcode for reference: [product_category category=”test-category”] quotes are as copied from the website docs.
Hopefully this was just a database glitch?Forum: Plugins
In reply to: [Colorbox Panels & Info Box] Same Box HeightIf you are still having issues with same height please copy and past this amend into the file template > content.php and it will resolve the issue for same height boxes as well as with images.
<?php
$post_type = “colorbox_panels”;$AllColorbox = array( ‘p’ => $WPSM_Colorbox_ID, ‘post_type’ => $post_type, ‘orderby’ => ‘ASC’);
$loop = new WP_Query( $AllColorbox );while ( $loop->have_posts() ) : $loop->the_post();
//get the post id
$post_id = get_the_ID();$Colorbox_Settings = unserialize(get_post_meta( $post_id, ‘Colorbox_Settings’, true));
if(count($Colorbox_Settings))
{
$option_names = array(
“colorbox_sec_title” => “yes”,
“show_colorbox_title_icon” => “1”,
“show_colorbox_title_icon_align” => “left”,
“colorbox_radius” => “yes”,
“enable_colorbox_border” => “yes”,
“colorbox_shadow” => “yes”,
“colorbox_same_height” => “no”,
“colorbox_masonry” => “yes”,
“box_layout” => 6,
“colorbox_title_bg_clr” => “#e8e8e8”,
“colorbox_title_icon_clr” => “#000000”,
“colorbox_desc_bg_clr” => “#ffffff”,
“colorbox_desc_font_clr” => “#000000”,
“show_colorbox_desc_align” => “left”,
“title_size” => “18”,
“des_size” => “16”,
“font_family” => “Arial”,
“colorbox_styles” =>1,
“custom_css” =>””,
);foreach($option_names as $option_name => $default_value) {
if(isset($Colorbox_Settings[$option_name]))
${“” . $option_name} = $Colorbox_Settings[$option_name];
else
${“” . $option_name} = $default_value;
}
}$colorbox_data = unserialize(get_post_meta( $post_id, ‘wpsm_colorbox_data’, true));
$TotalCount = get_post_meta( $post_id, ‘wpsm_colorbox_count’, true );
if($TotalCount>0)
{
?>
<?php if($colorbox_sec_title == ‘yes’ ) { ?>
<h2 style=”margin-bottom:20px ;display:block;width:100%;margin-top:10px”><?php echo get_the_title( $post_id ); ?> </h2>
<?php } ?>
<style>
<?php
require(‘style.php’);
echo $custom_css; ?>
</style>
<div style=”display:block;overflow:hidden;width:100%;”>
<div id=”colorbox_main_container_<?php echo $post_id; ?>” style=”colorbox_main_container”>
<?php
foreach($colorbox_data as $colorbox_single_data)
{
$colorbox_image = $colorbox_single_data[‘colorbox_image’];
$colorbox_title = $colorbox_single_data[‘colorbox_title’];
$colorbox_desc = $colorbox_single_data[‘colorbox_desc’];
$colorbox_title_icon = $colorbox_single_data[‘colorbox_title_icon’];
$enable_single_icon = $colorbox_single_data[‘enable_single_icon’];
?>
<div class=” wpsm_col-md-<?php echo $box_layout; ?> wpsm_col-sm-6 colorbox_singel_box”>
<div class=”wpsm_panel wpsm_panel-default wpsm_panel_default_<?php echo $post_id; ?> “>
<?php
if(preg_match(‘/\S+/’,$colorbox_image)) { ?>
<div class=”wpsm_panel-body”>
<?php echo do_shortcode($colorbox_image); ?>
</div>
<?php } ?>
<?php if($show_colorbox_title_icon != ‘4’ )
{ ?>
<div class=”wpsm_panel-heading”>
<h3 class=”wpsm_panel-title”>
<?php if($show_colorbox_title_icon == ‘1’ || $show_colorbox_title_icon==3 )
{
if($enable_single_icon==”yes”)
{
?>
<span style=”margin-right:6px;” class=”fa <?php echo $colorbox_title_icon; ?>”></span>
<?php
}
}
if($show_colorbox_title_icon == ‘1’ || $show_colorbox_title_icon==2 )
{ echo $colorbox_title; } ?></h3>
</div> <?php } ?>
<?php
if(preg_match(‘/\S+/’,$colorbox_desc)) { ?>
<div class=”wpsm_panel-body”>
<p><?php echo do_shortcode($colorbox_desc); ?></p>
</div>
<?php } ?>
</div>
</div>
<?php
}
?></div>
</div>
<?php if($colorbox_masonry==”yes”) { ?>
<script>
jQuery(window).load(function(){
jQuery(‘#colorbox_main_container_<?php echo $post_id; ?>’).masonry({
itemSelector: ‘.colorbox_singel_box’
});
});
</script>
<?php } ?>
<?php if($colorbox_same_height==”yes”) { ?>
<script>
var col = new jColumn();
col.jcolumn(‘wpsm_panel_default_<?php echo $post_id; ?>’);
</script><!– ********************************************* this script has been added to sort out the problems with the same height option? –>
<script>;( function( $, window, document, undefined )
{
‘use strict’;var $list = $( ‘#colorbox_main_container_<?php echo $post_id; ?>’ ),
$items = $list.find( ‘.wpsm_panel’ ),
setHeights = function()
{
$items.css( ‘height’, ‘auto’ );var perRow = Math.floor( $list.width() / $items.width() );
if( perRow == null || perRow < 2 ) return true;for( var i = 0, j = $items.length; i < j; i += perRow )
{
var maxHeight = 0,
$row = $items.slice( i, i + perRow );$row.each( function()
{
var itemHeight = parseInt( $( this ).outerHeight() );
if ( itemHeight > maxHeight ) maxHeight = itemHeight;
});
$row.css( ‘height’, maxHeight );
}
};setHeights();
$( window ).on( ‘resize’, setHeights );
$list.find( ‘img’ ).on( ‘load’, setHeights );})( jQuery, window, document );
</script>
<!– ********************************************* this script has been added to sort out the problems with the same height option? –>
<?php } ?>
<?php
}
else{
echo “<h3> No Colorbox Found </h3>”;
}
endwhile; ?>Forum: Plugins
In reply to: [Colorbox Panels & Info Box] Panels are cutoff at the bottomHi
I have the same issue the answer here doesn’t resolve the issue. If you set the option to same height the divs are clipped off when the page is refreshed or shrunk down to mobile. if you set the option to no and have isotope active so the divs stock, it all seems to work?
is there a fix to solve the issue with the plugin calculating the largest div correctly?Thanks
Forum: Plugins
In reply to: [Colorbox Panels & Info Box] ImagesYes when I first opened the “WYSIWYG” and added an image the image was visible but there was only a “text” tab on the right no “visual”. When I clicked “text” tab it obviously changed the content area to text only but there is no way to revert back to visual view as the tab is missing?
Also has your update added the visual display of an image to the description content area? I assume it will only show text as its a <textaraea>
Thanks
Forum: Plugins
In reply to: [Colorbox Panels & Info Box] ImagesOk I have completely reinstalled the plugin and it seems to now have this option, I assume you have just added this to your latest update, thanks?
Although when I click the tab “text” there is no option to revert back to “visual”? So I’m again stuck with the relative path only.
Forum: Plugins
In reply to: [Colorbox Panels & Info Box] ImagesNo I haven’t seen this option, How do you activate it. This would have saved me manipulating the plugin?