Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1111045

    In Enfold Enfold Theme Options there is a line in footer. There you can add a link or other infos of your website.

    What is the correct way to add the year and some other infos. Is this php in the footer.php (child theme) ok or do you prefer other ways?

    <!--Copyright mit Jahreszahl-Anpassung-->
    <?php $build = "2017";?> <!--Online-->
    &copy; <?php echo "$build"?><?php echo (date("Y")>"$build")?'-'.date("Y"):'';?> <!--Now-->
    <?php echo '<a href="https://..." title="Title" target="_blank">Linkname</a>';?>
    

    The result looks as it should:
    © 2017-2019 …
    Thanks

    #1111584

    Hey AWZ,

    I added filter avf_copyright_info to core for the copyright (should be in next update).

    Meanwhile in file enfold\footer.php around line 178 you find:

    
    if( in_array( $footer_widget_setting, array( 'all', 'nofooterwidgets', 'page_in_footer_socket' ) ) )
    

    Before this add:

    
    			/**
    			 * @since 4.5.7.2
    			 * @param string $copyright
    			 * @param string $copyright_option
    			 * @return string
    			 */
    			$copyright_option = avia_get_option( 'copyright' );
    			$copyright = apply_filters( 'avf_copyright_info', $copyright, $copyright_option );
    
    

    and you can modify copyright to your needs.

    If you need assistance with the filter or the update let us know and we can help you.

    Do not forget to make a backup of the file for a fallback and clear server and browser cache.

    Best regards,
    Günter

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