Theme Palace » All Posts https://themepalace.com/forum/pro-themes/photomania-pro/feed/ Wed, 24 Jan 2024 09:47:58 +0000 https://bbpress.org/?v=2.6.9 en-US https://themepalace.com/topic/where-can-you-change-the-slider-images/#post-194893 <![CDATA[Reply To: Where can you change the slider images?]]> https://themepalace.com/topic/where-can-you-change-the-slider-images/#post-194893 Fri, 19 Jan 2024 09:54:00 +0000 david-warner Even I too have the same doubt, please resolve this.

Thank you
David Warner
https://www.prestigerockcliff.org.in/

]]>
https://themepalace.com/topic/where-can-you-change-the-slider-images/#post-191561 <![CDATA[Reply To: Where can you change the slider images?]]> https://themepalace.com/topic/where-can-you-change-the-slider-images/#post-191561 Mon, 27 Nov 2023 05:19:47 +0000 Psink Please follow the screen record to set number of slides and the slide image
https://www.awesomescreenshot.com/video/22778043?key=64a15ee85d8794494e2da3e795fd5881

]]>
https://themepalace.com/topic/where-can-you-change-the-slider-images/#post-191557 <![CDATA[Where can you change the slider images?]]> https://themepalace.com/topic/where-can-you-change-the-slider-images/#post-191557 Sun, 26 Nov 2023 22:00:44 +0000 donald sprouse The slider for the home page, where can I select the number of slides and most importantly change slider images.

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-140341 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-140341 Thu, 10 Dec 2020 10:08:31 +0000 stiver1 Hello

Unfortunately, I did not find help on any site
Help me

thank you

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139515 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139515 Fri, 27 Nov 2020 04:17:58 +0000 wensolutions Hello,

Actually, as we tried to fix the code which is not working after changes too and this is beyond the support we provide for our free theme user.

Further, image is appearing fine with the only free version of the theme too so while using external code and third party plugins might bring plugin conflict and some functionality issues. Hence, we suggest our user to use recommended plugins and the plugins that are compatible to the theme.

Hoping for your kind co-operation.

Regards.

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139462 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139462 Thu, 26 Nov 2020 12:32:46 +0000 stiver1 Is there anything new about the code?

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139379 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139379 Wed, 25 Nov 2020 12:13:34 +0000 wensolutions Hello,

Regarding your query, actually we tried to improvise the code you have provided. Further, you can consider hiring a freelancer.

Actually the code you wanted is not from our theme and has arrived from the third party plugins.

Regards.

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139304 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139304 Wed, 25 Nov 2020 07:04:37 +0000 stiver1 I put the code down

but

The image does not appear after I uploaded it

https://i.top4top.io/p_1789qmuxz1.png

https://a.top4top.io/p_17894lvpf1.png

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139289 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139289 Tue, 24 Nov 2020 11:43:11 +0000 wensolutions Hello,

Once please replace below given Code with previous to fix the issue you have mentioned.

/**
 * Adds schema information to WordPress generated image tag.
 */
function stiver1_wp_image_schema_attributes( $attr, $attachment, $size ) {
	$is_edit = isset( $_GET['context'] ) ? 'edit' === $_GET['context'] : '';
	if ( $is_edit ) {
		return $attr;
	}
	$attachment_id = isset( $attachment->ID ) ? $attachment->ID : 0;
	if ( ! $attachment_id ) {
		return $attr;
	}
	$kora_image = wp_get_attachment_image_src( $attachment_id, $size );
	echo '<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">';
	echo '<meta itemprop="url" content="' . esc_url( $kora_image[0] ) . '">';
	echo '<meta itemprop="width" content="' . esc_attr( $kora_image[1] ) . '">';
	echo '<meta itemprop="height" content="' . esc_attr( $kora_image[2] ) . '">';
	echo '</span>';
	$attr['itemprop'] = 'image';
	return $attr;
}
add_filter( 'wp_get_attachment_image_attributes', 'stiver1_wp_image_schema_attributes', 10, 3 );

Hope this helps.

Please get back to us if the above code snippet didn’t work for you.

Regards.

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139269 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139269 Tue, 24 Nov 2020 07:43:13 +0000 stiver1 Hi

I added the code, but the image does not appear in the article

https://k.top4top.io/p_1789l666i1.png

https://l.top4top.io/p_1789p2c7b2.png

https://a.top4top.io/p_1789fyyi53.png

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139264 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139264 Tue, 24 Nov 2020 06:25:31 +0000 wensolutions Hello,

Regarding your query, we have modified and optimized your earlier provided code to make it compatible for schema and SEO purpose. This below code will only add schema properties to those image tags which are generated using “the_post_thumbnail();” function. You need to paste this code snippet in your child themes’ functions.php file or in your custom plugin, please never put code snippets in main theme files directly as that can remove all the changes during theme update. Also you should not make any modification directly in your parent theme as all of the customizations will be lost upon update to the latest version of the plugin.

So please go through the child theme for the changes. Below link helps you to create child theme.

https://wptravel.io/how-to-create-a-child-theme/

/**
 * Adds schema information to WordPress generated image tag.
 */
function stiver1_wp_image_schema_attributes( $attr, $attachment, $size ) {
	$attachment_id = isset( $attachment->ID ) ? $attachment->ID : 0;
	if ( ! $attachment_id ) {
		return $attr;
	}
	$kora_image = wp_get_attachment_image_src( $attachment_id, $size );
	echo '<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">';
	echo '<meta itemprop="url" content="' . esc_url( $kora_image[0] ) . '">';
	echo '<meta itemprop="width" content="' . esc_attr( $kora_image[1] ) . '">';
	echo '<meta itemprop="height" content="' . esc_attr( $kora_image[2] ) . '">';
	echo '</span>';
	$attr['itemprop'] = 'image';
	return $attr;
}
add_filter( 'wp_get_attachment_image_attributes', 'stiver1_wp_image_schema_attributes', 10, 3 );

Hope this helps.

Please get back to us if the above code snippet didn’t work for you.

Regards.

]]>
https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139070 <![CDATA[Reply To: Request to amend the code to work on my site]]> https://themepalace.com/topic/request-to-amend-the-code-to-work-on-my-site/#post-139070 Fri, 20 Nov 2020 12:19:15 +0000 stiver1 I want to schema for images

itemprop = “image” itemscope itemtype = “https://schema.org/ ImageObject”

]]>