This topic has 12 replies, 2 voices, and was last updated 10 years, 4 months ago ago by Eva Kemp
Hi,
How to edit the “Additional product options” section that appears when editing a product?
I am happy to do it myself if you can tell me which file I need to look into?
I want to remove:
– Additional information block
– Mark product as “New”
– Upload image for hover effect
Also is it possible to automatically have the “Title for custom tab” section already filled with a title that cannot be edited?
Many thanks,
Hello,
You can edit those blocks in wp-content/themes/legenda/framework/theme-options.php file.
Unfortunately there is no such option to have the “Title for custom tab” section filled automatically. Sorry.
Regards,
Eva Kemp.
Hi,
Thanks,
If I want to make the changes part of the child theme, do I just duplicate the file or I need to make the folder structure as well?
Hello,
You’re welcome.
You need make the folder structure. Please read this article carefully: http://codex.wordpress.org/Child_Themes > Referencing / Including Files in Your Child Theme
Regards,
Eva Kemp.
Hi,
I don’t seem to see the changes. I made the folder structure and copied the file and changed it.
I followed your advise:
“Overriding Parent Theme Template Files – Copy the Parent Theme template file to your Child Theme directory and make the edits there. As of version 2.7, WordPress will look in the Child Theme directory first for template files. And if an alternate version of, say, footer.php, or single.php exists, WordPress will use that template file instead.
Please provide us with wp-admin panel credentials and FTP access in Private Content.
Thank you.
Regards,
Eva Kemp.
Hi,
Please check Private content.
Thanks,
Thank you for the credentials. Could you please specify what changes you’ve made to the theme-options.php file?
Regards,
Eva Kemp.
Hi,
I have removed:
array(
‘id’ => ‘additional_block’,
‘label’ => ‘Additional information block’,
‘type’ => ‘select’,
‘choices’ => $statick_blocks
),
array(
‘id’ => ‘product_new’,
‘label’ => ‘Mark product as “New”‘,
‘type’ => ‘select’,
‘choices’ => array(
array(
‘value’ => ‘disable’,
‘label’ => ‘Choose’
),
array(
‘value’ => ‘disable’,
‘label’ => ‘No’
),
array(
‘value’ => ‘enable’,
‘label’ => ‘Yes’
)
)
),
array(
‘id’ => ‘hover_img’,
‘label’ => ‘Upload image for hover effect’,
‘type’ => ‘upload’
),
Hello,
We’ve added the following code into functions.php file of the child theme:
<?php
require_once( get_stylesheet_directory() . '/framework/theme-options.php' );
It’s described in the link we provided to you: http://codex.wordpress.org/Child_Themes > Referencing / Including Files in Your Child Theme.
Now you can check the Products editor in admin panel.
Regards,
Eva Kemp.
Hi Eva,
Many thanks,
So if I wanted to do the same with another file, I would need to make the folder structure, duplicate the file and add this line of code (with different path) to the function.php?
I did have a look at the Codex but it does not make much sense to me. So far I have learnt many things from you directly 🙂
Hello,
You’re welcome.
Yes, you’re right.
If you need more help don’t hesitate to contact us.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up