*

unlimit

  • ***
  • 25 posts
Image SEO change filename to ad title
« on: March 08, 2019, 11:59:47 PM »
Hi,
Images of my osclass website are named as 1234,1324 like numbers and as you know it's very bad for the SEO.

How can i rename them as listing title+above number(to prevent repeat content).

I searched in forum and found following solution.

---------------------------------------

In this case, you should edit item.php:
So all you need is this: alt="<?php echo osc_item_title().' '.osc_item_region().' '.osc_item_city().' '.osc_item_category();?>"

<div class="item-photos">
Code: [Select]
<a href="<?php echo osc_resource_url(); ?>" class="main-photo" title="<?php _e('Image', 'bender'); ?> <?php echo $i+1;?> / <?php echo  osc_count_item_resources();?>">
                <img src="<?php echo osc_resource_url(); ?>" alt="<?php echo osc_item_title().' '.osc_item_region().' '.osc_item_city().' '.osc_item_category();?>"
<?php echo osc_highlight( strip_tags( osc_item_description() ) ); ?>" title="<?php echo osc_item_title(); ?>" />
            </a>

----------------------------------------------

But there is no such code in item.php to replace.

Please help me.
Thanks for nice theme.

*

MB Themes

Re: Image SEO change filename to ad title
« Reply #1 on: March 09, 2019, 10:38:13 AM »
Code is to update alt tag, not url or image at all, such change may not be possible as all image functions expect resource ID
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots