Atiqur Rahman
Forum Replies Created
-
Ok, Thank you
Forum: Plugins
In reply to: [Optimus - WordPress Image Optimizer] Optimus HQ not workingYes, its worked now. Thank you.
Forum: Fixing WordPress
In reply to: How to use wordpress customizer select optionsYes, its working perfectly now, that type ‘option’ was the problem. SO my final code is…
$wp_customize->add_setting('hide_author', array( 'default' => 'value2', )); $wp_customize->add_control( 'hide_author', array( 'settings' => 'hide_author', 'label' => 'Hide About Bio', 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'value1' => 'Yes', 'value2' => 'No', ), ));AND, its working fine with…
<?php if( get_theme_mod('hide_author', 'value2') != 'value1' ): ?> This is author data <?php endif; ?>Thank you very much for your time and help.
Forum: Fixing WordPress
In reply to: How to use wordpress customizer select options<?php echo get_theme_mod( 'hide_author', 'No Value Set' ); ?>output is whatever i selected that value, if “Yes” yes value if “No” no value.
Forum: Fixing WordPress
In reply to: How to use wordpress customizer select optionsI got the solution from radio button, select seems to be used for echoing selected data. Not working for conditioning. May be there is a way!
Forum: Fixing WordPress
In reply to: How to use wordpress customizer select optionsIts not working.. I’ve exact this code in functions.php
$wp_customize->add_section( 'post_control' , array( 'title' => __( 'Post Settings', 'themename' ), 'priority' => 6, 'description' => 'Manage post contents from here.', ) ); $wp_customize->add_setting('hide_author', array( 'default' => 'value2', 'type' => 'option', )); $wp_customize->add_control( 'hide_author', array( 'settings' => 'hide_author', 'label' => 'Hide About Bio', 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'value1' => 'Yes', 'value2' => 'No', ), ));AND, using this is nothing happened. Contents always showing.
<?php if( get_theme_mod('hide_author', 'No') != 'Yes' ): ?> This is author data <?php endif; ?>Forum: Fixing WordPress
In reply to: How to use wordpress customizer select optionsI failed to use it. I’ve no idea how i could use it by using get_theme_mod
<?php if ( get_theme_mod( 'control_meta_data' ) ) : ?>I wanted to hide/show contents according to value selected.
Forum: Plugins
In reply to: [WooCommerce] How to remove single product image link?Yes.. perfect. Thank you!
Forum: Plugins
In reply to: [WooCommerce] How to remove single product image link?In product-image.php there is code
echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<a href="%s" itemprop="image" class="woocommerce-main-image zoom" title="%s" data-rel="prettyPhoto' . $gallery . '">%s</a>',$image_link, $image_caption, $image ), $post->ID);If i touch anything from there… image disappear. Don’t know how to get image without link!
Forum: Plugins
In reply to: [Logo Carousel] Plugins doesn't working with 3.9Hi Bjorn Manintveld,
after researching and i found the issue. The theme which don’t have featured image enabled like this…
add_theme_support( ‘post-thumbnails’ );You can’t add any logo using this plugins.
Thanks
Forum: Plugins
In reply to: [Logo Carousel] Plugins doesn't working with 3.9For old user who updated the plugins display crashed. And for new user who just installed can’t add any logo (featured image). There was problem with version 1.6.0 that url wasn’t working and for version 1.6.1 nothing working. I’ve tested the plugin with zero plugins and simple theme its not working totally. If you have time test your plugin with any other theme not only with wordpress default theme.