Forum Replies Created
-
AuthorPosts
-
Diana
ParticipantTom:
I resolved in a different way: I created a sidebar that shows just on mobile and the code above works perfect, then disable the rest of the sidebars, very useful to fix some other things. Thank you. Diana
Diana
ParticipantThanks for the response.
The site: iluminet.com
The code is on the left sidebar “products” is a wpsp of one column
I want that in mobile becomes a two column (just like “media partners” above) in order to save some space on mobile.Thank you
diana
Diana
ParticipantHello Tom.
I have a post list set up as 1 column, and I need that in mobile, shows 2 columns, I’ve tried to make something with the code you gave above but, I cant! Can you help me?
Thanks
DianaDiana
ParticipantWow! Works perfect! Thank you very much!
Diana
ParticipantTom,
Thank you very much, it works perfect!, just another thing. Is it possible to be clickeable to the post (just like the regular image).thanks again for your awesome support.
Diana
Diana
ParticipantHello I have a custom field in some posts (prod1). Is an url link to an image (ej: https://www.iluminet.com/press/wp-content/uploads/2019/01/Konica-mini.jpg). If I use the code:
add_action( 'wpsp_after_content', 'tu_add_custom_meta' ); function tu_add_custom_meta() { $meta = get_post_meta( get_the_ID(), 'prod1', true ); if ( isset( $meta ) && '' !== $meta ) { echo '<div class="my-class-here">' . $meta . '</div>'; } }
or use
echo esc_url( get_post_meta( get_the_ID(), 'prod1', true ) );
I just get the text (https://www.iluminet.com/press/wp-content/uploads/2019/01/Konica-mini.jpg) below the title, not the image, I need that as the image. Is it possible?
Thank you
Diana
-
AuthorPosts