Parallax image problem

Doesn’t sound like you’re doing anything wrong but can’t really assist without more information. I’m thinking it’s either a theme, plugin, or server issue. First try disabling the cherry lazy load / parallax plugins to see if it is coming from there. Then try changing your theme to see if you have the same problem … Read more

Get taxonomy image for Toolset custom taxonomy through Toolset Views Shortcode

The following code is partialy taken from the plugin Taxonomy Images and it’s working: function get_taxonomy_image( $atts ) { $atts = shortcode_atts( array( ‘image_size’ => ‘thumbnail’, ‘id’ => ”, ), $atts ); if( ! empty( $atts[‘id’] ) ) { $term = get_term( $atts[‘id’] ); $related_id = 0; if ( isset( $term->term_taxonomy_id ) ) { $related_id … Read more

How to hide image alt text/caption in Visual Composer?

i had also the same issue when using the AVADA theme. It appends the title attribute on the image which is showing the text/caption when its being on hover. <script type=”text/javascript”> /* The first line waits until the page has finished to load and is ready to manipulate */ $(document).ready(function(){ /* remove the ‘title’ attribute … Read more

Adding slides to an existing carousel manually

No it would not be a viable solution. Never hard-code content like that. Assuming you have a slider, you should create a custom post type (or use a plugin like ACF to create a repeater field. Then you’d query a loop of either said posts or fields, and create the appropriate html markup. That way … Read more

img src not working correctly in custom post type

Add this following function to your functions.php of your theme or child theme. function homeURLshortcode() { return home_url(); } add_shortcode(‘homeurl’, ‘homeURLshortcode’); This will create a shortcode like [homeurl] which you can use to add in any visual editor and it will render as your main domain address, like http://domain.com. So for your image url you … Read more

Add category image before post title on homepage

This is easily done using a filter on the title, which you can add to your functions.php. Like this: add_filter (‘the_title’, ‘wpse305812_add_flag’, 10, 2); function wpse305812_add_flag ($title, $id) { if (in_category (‘england’, $id)) $flag = “http://www.example.com/…/england.jpg” elseif (in_category (‘brasil’, $id)) $flag = “http://www.example.com/…/brasil.jpg” …; return ‘<img src=”‘ . $flag . ‘”> ‘ . $title; } … Read more