Osclass forums

Support forums => old => Topic started by: abhilashsnair on December 21, 2015, 07:04:30 am

Title: I ant to display Custom field on right sidebar
Post by: abhilashsnair on December 21, 2015, 07:04:30 am
I added a cutom field Mobine Number in My installation, No i ant to display that number on right sidebar , I tried oc-contents /benderblack/item-sidebar.php

but i dont kno the shortcode to write there , please help
Title: Re: I ant to display Custom field on right sidebar
Post by: teseo on December 21, 2015, 01:03:06 pm
Hi,

Where exactly in the sidebar do you want that custom field placed? After Name, for instance? ???

Regards
Title: Re: I ant to display Custom field on right sidebar
Post by: abhilashsnair on December 21, 2015, 04:06:00 pm
Before contact form
Title: Re: I ant to display Custom field on right sidebar
Post by: teseo on December 21, 2015, 04:27:23 pm
Insert this code at the bottom of your bender_black/item-sidebar.php:

Code: [Select]
<script type="text/javascript">
    $(document).ready(function(){
        phone = $(".meta strong:contains('[Your custom field name]')");

        $("#error_list").before(phone.parents('.meta').css('padding-bottom', '10px'));
        phone.css('font-weight', 'normal');
    });
</script>

And replace [Your custom field name] with the real name of your Mobile Phone custom field.

Regards
Title: Re: I ant to display Custom field on right sidebar
Post by: ramakrishna4u on December 22, 2015, 09:11:06 pm
hi,

Someone please help me in adding custom  field in ‘General Information’.

When I add a custom filed its displaying in ‘Seller's information’

Regards
RK
Title: Re: I ant to display Custom field on right sidebar
Post by: expertdeveloper on January 03, 2016, 01:31:11 am
yes we can do that man, we can do that if you have a little php code knowledge.