Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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 much

    #523951

    Hey 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!
    Elliott

    #524111

    Hi 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…..

    #525071

    Hey!

    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!
    Elliott

    #525077

    Sorry Elliot, but I do not understand in which way it works and when…..

    #525982

    Hey!

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.