-
AuthorPosts
-
October 23, 2015 at 5:10 am #523439
Hi sorry but I have another two issues exactly:
1) how to change color of the “go down” arrow in the landing page because with my background it’ s not visible
2) I made some changes in the function-set-avia-frontend.php and I need to loose them during an updating so I tried to use this in child theme
but with no result
I tried also to export data from the main theme but I receive a message that highlight an error…..
Thank you so muchOctober 23, 2015 at 4:16 pm #523951Hey amepro!
1. Add this to your custom CSS.
#top .scroll-down-link { color: red !important; }
2. Whenever a function is surrounded with a “function_exists” call you can copy that into your child theme functions.php file and edit it there. Here is an example in the file you mentioned.
if(!function_exists('avia_is_dynamic_template')) { /** * This function checks if the page we are going to render is using a dynamic template * * @return bool $result true or false */ function avia_is_dynamic_template($id = false, $dependency = false) { $result = false; if(!$id) $id = avia_get_the_ID(); if(!$id) return $result; if($dependency) { if(avia_post_meta($id, $dependency[0]) != $dependency[1]) { return false; } } if($template = avia_post_meta($id, 'dynamic_templates')) { $result = $template; } return $result; } }
Just copy the whole function to your child theme and it will be used instead.
Cheers!
ElliottOctober 23, 2015 at 9:27 pm #524111Hi Elliot, OK for the first item while for the second I think I forgot a “do not” about the needing, I don’ t want to loose changes made in the footer and, using the above function nothing changes…..
October 26, 2015 at 5:28 pm #525071Hey!
That’s just an example. Whatever customization your trying to do in that file you can copy the whole function (because they are all surrounded by the function_exists calls) into your child theme functions.php file and edit it there.
Cheers!
ElliottOctober 26, 2015 at 5:34 pm #525077Sorry Elliot, but I do not understand in which way it works and when…..
October 28, 2015 at 10:48 am #525982Hey!
For example, there’s a function called avia_is_overview() inside the function-set-avia-frontend.php file. Instead of adding the modifications inside that file, copy the whole avia_is_overview() function inside the child theme’s functions.php file then do the modifications there. Don’t include the line
if(!function_exists('avia_is_overview')) {
What is the function that you’re trying to modify?
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.