Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter clestcruz

    (@clestcruz)

    So there is no way to show the converted currency and process the payment using the base currency?

    But if you want to show on our site convertible currency, and on the checkout page of the base currency – In plugin setting->Options->Is multiple allowed set No

    Already tried this option before but it only creates confusion upon checkout.

    Thread Starter clestcruz

    (@clestcruz)

    What does the code above do?

    Thread Starter clestcruz

    (@clestcruz)

    Hello ankit, i’m having a bit of a problem in displaying the second featured image on the fancybox window. Basically whenever i click the magnify button. It just displays a text and does not display the second featured image. Here is a sample of the code

    <div class="collections_dresses_container">
    
    			    <?php query_posts('posts_per_page=-1&cat=10'); if(have_posts()) : while(have_posts()) :the_post(); ?>
    		        <div class="collections_thumbnails">
    
    				  <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); echo '<img src="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '">';  } ?>
    
    				  <div class="hover_dress">
    					<a class="fancybox" href="<?php echo $pluginOutputArray[0]['thumb'] ?>"><span><?php the_title(); ?></span></a>
    				  </div>
    		        </div>
    			    <?php endwhile; endif; wp_reset_query();?>
    
    		     </div>

    Here is a screenshot of what images i have placed using your plugin.
    [IMG]https://i255.photobucket.com/albums/hh140/testament1234/dynamicimage_zps906f53b1.jpg[/IMG]

    Thread Starter clestcruz

    (@clestcruz)

    I see thanks for your reply. I’ll look into it ??

    Thread Starter clestcruz

    (@clestcruz)

    So basically i need to fix this issue in the cpanel of our hosting? I’m not using any SMTP plugins

    Thread Starter clestcruz

    (@clestcruz)

    Ok so i managed to solve my shortcode. Now i have another problem. The grid worked but the first paragraph doesn’t have any styling but the 2nd and 3rd have styling https://i255.photobucket.com/albums/hh140/testament1234/font_zps75ea6335.png

    Thread Starter clestcruz

    (@clestcruz)

    I seem to be having a another problem. Basically my site runs on skeleton framework which is responsive. So tried playing with the codes a little bit

    //Gallery Shortcode 2
    function short_gallery($atts, $content = null) {
        extract(shortcode_atts(array(), $atts));
        return '<div class="eight columns gallery_box"><div class="inner_gallery"><img src="'.$content.'"/></div></div>';
    }
    add_shortcode("gallery", "short_gallery");

    I removed the fixed size that is set since the image will not be viewed properly from a mobile device or smartphone and added eight columns in the class.

    But it looks the image will not resize and i will upload the default size of the image.

    In the end i had to resort the previous code which is this

    //Gallery Shortcode 2
    function short_gallery($atts, $content = null) {
        extract(shortcode_atts(array(), $atts));
        return '<div class=" gallery_box"><div class="inner_gallery"><img src="'.$content.'" width="400px" height="200px" style="width:400px;height:200px;" /></div></div>';
    }
    add_shortcode("gallery", "short_gallery");
    /*GALLERY SHORTCODE*/
    .gallery_box{background-color:black; float:left; margin:0px 20px 10px 0px }
    .inner_gallery{margin:5px}

    By the way i didn’t know the my styles will still work in function.php. I thought that i need to add this type of code in order to apply my styles

    function webtreats_column_stylesheet() {
    02
        $my_style_url = WP_PLUGIN_URL . '/webtreats-column-shortcodes/styles.css';
    03
        $my_style_file = WP_PLUGIN_DIR . '/webtreats-column-shortcodes/styles.css';
    04
    
    05
        if ( file_exists($my_style_file) ) {
    06
            wp_register_style('column-styles', $my_style_url);
    07
            wp_enqueue_style('column-styles');
    08
        }
    09
    }
    10
    add_action('wp_print_styles', 'webtreats_column_stylesheet');
    Thread Starter clestcruz

    (@clestcruz)

    it worked i just had to float it to the left. Now i’ll just have to create a shortcode for clearfix or clear:both

    Thread Starter clestcruz

    (@clestcruz)

    by the way why is the width and height repeated?

    return ‘<img src=”‘.$content.'” width=”400px” height=”200px” style=”width:400px;height:200px;” />’; I removed the 1st width and height and still seemed to work.

    Thread Starter clestcruz

    (@clestcruz)

    Hi solution work and i’m trying to add some more code to it in order for me to get the desired result.

    Basically i want it to be the exactly the same as the one posted above. I tried adding this coding in the shorthand and it seems it doesn’t seem to work.

    function gallery($atts, $content = null) {
        extract(shortcode_atts(array(), $atts));
        $return_string = '<div class="Outer_box">';
    
    	  $return_string = '<div class="inner_box">';
    
        return '<img src="'.$content.'" width="400px" height="200px" style="width:400px;height:200px;" />';
    
    	  $return_string = '</div>';
    
    	$return_string = '<div>';
    
    }
    add_shortcode("gallery", "gallery");
    style.css
    
    .outer_box {background-color:black}
    .inner_box{margin:10px}

    Basically the outer_box will provide the background color of grey, then the inner box which contains the image will have a margin of 10px. I guess that including a class inside a $return_string won’t work

    Thread Starter clestcruz

    (@clestcruz)

    I tried reviewing the codex earlier before posting but really have a hard time since i’m not good in coding PHP.

    Thread Starter clestcruz

    (@clestcruz)

    Thanks for sharing the link ??

Viewing 12 replies - 1 through 12 (of 12 total)