There’s lots of info about child themes, but it’s difficult to find instructions how to find info and rules in how to check them. Can someone please point me a direction where i can find my answers?
Kindly Lillan
]]>If I wanted to add more items to an array called $meta_box that was being created in the parents functions.php, how can I accomplish this?
PARENTS FUNCTIONS.PHP
EX. $meta_box = array(
'id' => 'my-meta-box2',
'title' => __('Event Information'),
'page' => 'event',
'context' => 'normal',
'priority' => 'high',
'fields' => array(
array(
'name' => __('Date of Event'),
'desc' => __('Enter the date of event.'),
'id' => 'eventdate',
'type' => 'text',
'std' => ""
)
)
);
// Add meta box
function mytheme_add_box2() {
global $meta_box;
add_meta_box($meta_box['id'], $meta_box['title'], 'mytheme_show_box2', $meta_box['page'], $meta_box['context'], $meta_box['priority']);
}
so in the child theme I want to add 2 more items
$meta_box = array(
'id' => 'my-meta-box2',
'title' => __('Event Information'),
'page' => 'event',
'context' => 'normal',
'priority' => 'high',
'fields' => array(
array(
'name' => __('Date of Event'),
'desc' => __('Enter the date of event.'),
'id' => 'eventdate',
'type' => 'text',
'std' => ""
),
array(
'name' => __('Time of Event'),
'desc' => __('Enter the time(s) of the event.'),
'id' => 'eventtime',
'type' => 'textarea',
'std' => ""
),
array(
'name' => __('Google Map Link'),
'desc' => __('Enter the url for the google map link (leave blank to disable).'),
'id' => 'eventmaplink',
'type' => 'text',
'std' => ""
)
);
]]>
On every project i start i work locally and once im done i export my database and search replace all localhost url’s to the new url.
then in cpanel i create a new database user name and password and modify wp-config.
the website works fine all pages working just one thing wont work and i cant find a solution:
all my Theme Options wont show
my theme options settings and s widgets wont show up and i have to redo this process from the beginning so each time i will have to redo all the settings.
i have read a lot about it:
https://codex.www.ads-software.com/Mov…
and even used this tool you posted:
https://interconnectit.com/prod…
but still don’t know what am i doing wrong.
same thing happens when i try to install a site on local host from a backup.
is there a tutorial on how to do this the right way or can someone please please help.
Thanks in advance
]]>i have a function.php file in my child theme folder but dont now how to do it.
so in my parent folder i have this file in my js folder –> jquery.tipsy.js and i am whiling to ignore it in my child theme what is the best way to do this?
hope i made sense thank you Daniel
]]>