Advertisement:

Author Topic: Change the alignment of Custom Field  (Read 731 times)

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Change the alignment of Custom Field
« on: August 15, 2014, 05:44:07 pm »
I have modern theme installed and in the custom field plugin called Product attributes is showing an odd alignment  and I want to change the alignment and shift it to the left. I can locate the file where I can make changes I inspected the element in chrome browser and noticed that if I change
<h3 style="margin-left: 40px; margin-top: 20px;">Products attributes</h3>
to
<h3 style="margin-left: 0px; margin-top: 20px;">Products attributes</h3>

Then everything looks fine. Is there any way I can achieve that I cannot locate the file to make this changes.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Change the alignment of Custom Field
« Reply #1 on: August 15, 2014, 06:18:20 pm »
Hi,

Is it really that a custom field or a plugin? By the structure I'd say it's a plugin, so locate where that is set in the plugin scripts and change it there.

Or, if would happen that you have only that <h3> inside the ad container, I think this would be enough:

.content_item h3 { margin-left: 0 !important; }

Regards
« Last Edit: August 15, 2014, 06:20:06 pm by teseo »

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Change the alignment of Custom Field
« Reply #2 on: August 15, 2014, 07:14:28 pm »
Its a OSclass plugin called product attributes .... and I want to change the odd alignment of it ...!! as you should know when 40px is changed to 0px its ok. How to change this as default ..?
« Last Edit: August 15, 2014, 07:15:59 pm by Sinto001 »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Change the alignment of Custom Field
« Reply #3 on: August 15, 2014, 08:22:41 pm »
I've already told you... Locate where in the plugin that inline style is set or ad that CSS rule to your style.css

Regards

ColdWabmaster

  • Full Member
  • ***
  • Posts: 151
Re: Change the alignment of Custom Field
« Reply #4 on: August 15, 2014, 09:16:31 pm »
Solved
Ok I found it in the item_detail.php of oc-content. Changed and now it is good..thanks for assist.