paulcoppock
Forum Replies Created
-
Sorry, I was a liitle too quick asking for help. I found the code in the functions.php file that also needed uncommenting for the color scheme.
Forum: Plugins
In reply to: [Lava Directory Manager] How to create frontend formThe shortcode to display the front end form is:
[lava_directory_form]The shortcode to display the directory listings is:
[lava_directory_listing]The shortcode to display “My Page” is:
[lava_directory_mypage]- This reply was modified 9 years, 4 months ago by paulcoppock.
Forum: Plugins
In reply to: [Simple Shortcodes] Simple Short Codes quit working with WP 3.9 upgrade.It still works, It’s just the button does not show up. There’s something a little bit strange going on with the WordPress toolbar. I’m hoping this will be fixed with the next WP update.
Forum: Plugins
In reply to: [WooCommerce] The Variable Price Prefix Label "From": How to chage it?Thanks
Forum: Plugins
In reply to: [WooCommerce] The Variable Price Prefix Label "From": How to chage it?Thanks Elsonce,
I ended up just editing the template file and changing the From to Desde. I know it’s bot the best way because when woocommerce is updated I’ll lose that change.
Using a child theme made it even more difficult to find a solution.
Forum: Hacks
In reply to: How to hide div if featured image caption does not exist?Ahhh, Thank you Franky 57. Using this from your suggestion above:
if (!empty($thumbnail_image[0]->post_excerpt)) { return '<div class="front-caption">'.$thumbnail_image[0]->post_excerpt.'</div>'; } else { return; } }Works, I had some other code related to the image caption conflicting with it. I removed it and added your suggestion. Thanks again.
Forum: Hacks
In reply to: How to hide div if featured image caption does not exist?I am trying to hide the caption only if it does not exist for the post image. I will have a post image for each post but not all post images will have a caption. If there is no caption I do not want to display the div that I have styled because it contains borders. Currently if there is no caption for the image I end up with the empty div and it’s borders.
Forum: Fixing WordPress
In reply to: How to paginate custom post type by letter of post titleThank you
Forum: Hacks
In reply to: How to hide div if featured image caption does not exist?I also tried using the if else like this:
return '<div class="front-caption">'.$thumbnail_image[0]->post_excerpt.'</div>'; } else { return '<div style="display:none;"></div>';but the empty div is still displayed.
Forum: Hacks
In reply to: How to hide div if featured image caption does not exist?Yes Franky57, I tried replacing it with your suggestion and it seems to do the same thing. The empty div is still printed.