
Tagged: enfold
-
AuthorPosts
-
March 24, 2016 at 2:53 pm #603094
Hello!
I am using the Enfold theme for this website – http://tomatoculture.com. I was trying to take out the “theme created by kriesi” in the footer and followed the directions of “you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area
if($copyright && strpos($copyright, ‘[nolink]’) !== false)”I added the [no link] to “***$copyright = do_shortcode( avia_get_option(‘copyright’, “© “.__(‘Copyright’,’avia_framework).” – “.get_bloginfo(‘name’).”“) [no link] <—added it here);***” Once I went back to the website now my pictures are missing and the animation is gone. The links still work but the pictures are missing and so is the animation. I immediately went and deleted the [no link] from the exact spot I added it and resaved the file. Still the pictures are gone even though the file is back to its original state. See below for the current code in the footer.php file for the Enfold theme.
Please help!
<***?php
//copyright
$copyright = do_shortcode( avia_get_option(‘copyright’, “© “.__(‘Copyright’,’avia_framework).” – “.get_bloginfo(‘name’).”“) );// you can filter and remove the backlink with an add_filter function
// from your themes (or child themes) functions.php file if you dont want to edit this file
// you can also just keep that link. I really do appreciate it ;)
$kriesi_at_backlink = kriesi_backlink(get_option(THEMENAMECLEAN.”_initial_version”));//you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area
if($copyright && strpos($copyright, ‘[nolink]’) !== false)
{
$kriesi_at_backlink = “”;
$copyright = str_replace(“[nolink]”,””,$copyright);
}if( $footer_widget_setting != ‘nosocket’ )
{?***>
March 24, 2016 at 2:55 pm #603098Here is the full code in the footer.php file (not just the snippet above)
<***?php
do_action( ‘ava_before_footer’ );
global $avia_config;
$blank = isset($avia_config[‘template’]) ? $avia_config[‘template’] : “”;//reset wordpress query in case we modified it
wp_reset_query();//get footer display settings
$the_id = avia_get_the_id(); //use avia get the id instead of default get id. prevents notice on 404 pages
$footer = get_post_meta($the_id, ‘footer’, true);
$footer_widget_setting = !empty($footer) ? $footer : avia_get_option(‘display_widgets_socket’);//check if we should display a footer
if(!$blank && $footer_widget_setting != ‘nofooterarea’ )
{
if( $footer_widget_setting != ‘nofooterwidgets’ )
{
//get columns
$columns = avia_get_option(‘footer_columns’);
?>
<div class=’container_wrap footer_color’ id=’footer’><div class=’container’>
<?php
do_action(‘avia_before_footer_columns’);//create the footer columns by iterating
switch($columns)
{
case 1: $class = ”; break;
case 2: $class = ‘av_one_half’; break;
case 3: $class = ‘av_one_third’; break;
case 4: $class = ‘av_one_fourth’; break;
case 5: $class = ‘av_one_fifth’; break;
case 6: $class = ‘av_one_sixth’; break;
}$firstCol = “first el_before_{$class}”;
//display the footer widget that was defined at appearenace->widgets in the wordpress backend
//if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php
for ($i = 1; $i <= $columns; $i++)
{
$class2 = “”; // initialized to avoid php notices
if($i != 1) $class2 = ” el_after_{$class} el_before_{$class}”;
echo “<div class=’flex_column {$class} {$class2} {$firstCol}’>”;
if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Footer – column’.$i) ) : else : avia_dummy_widget($i); endif;
echo “</div>”;
$firstCol = “”;
}do_action(‘avia_after_footer_columns’);
?>
</div>
<!– ####### END FOOTER CONTAINER ####### –>
</div><?php } //endif nofooterwidgets ?>
<?php
//copyright
$copyright = do_shortcode( avia_get_option(‘copyright’, “© “.__(‘Copyright’,’avia_framework).” – “.get_bloginfo(‘name’).”“) );// you can filter and remove the backlink with an add_filter function
// from your themes (or child themes) functions.php file if you dont want to edit this file
// you can also just keep that link. I really do appreciate it ;)
$kriesi_at_backlink = kriesi_backlink(get_option(THEMENAMECLEAN.”_initial_version”));//you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area
if($copyright && strpos($copyright, ‘[nolink]’) !== false)
{
$kriesi_at_backlink = “”;
$copyright = str_replace(“[nolink]”,””,$copyright);
}if( $footer_widget_setting != ‘nosocket’ )
{?>
<footer class=’container_wrap socket_color’ id=’socket’ <?php avia_markup_helper(array(‘context’ => ‘footer’)); ?>>
<div class=’container’><span class=’copyright’><?php echo $copyright . $kriesi_at_backlink; ?></span>
<?php
if(avia_get_option(‘footer_social’, ‘disabled’) != “disabled”)
{
$social_args = array(‘outside’=>’ul’, ‘inside’=>’li’, ‘append’ => ”);
echo avia_social_media_icons($social_args, false);
}$avia_theme_location = ‘avia3’;
$avia_menu_class = $avia_theme_location . ‘-menu’;$args = array(
‘theme_location’=>$avia_theme_location,
‘menu_id’ =>$avia_menu_class,
‘container_class’ =>$avia_menu_class,
‘fallback_cb’ => ”,
‘depth’=>1,
‘echo’ => false,
‘walker’ => new avia_responsive_mega_menu(array(‘megamenu’=>’disabled’))
);$menu = wp_nav_menu($args);
if($menu){
echo “<nav class=’sub_menu_socket’ “.avia_markup_helper(array(‘context’ => ‘nav’, ‘echo’ => false)).”>”;
echo $menu;
echo “</nav>”;
}
?></div>
<!– ####### END SOCKET CONTAINER ####### –>
</footer><?php
} //end nosocket check} //end blank & nofooterarea check
?>
<!– end main –>
</div><?php
//display link to previeous and next portfolio entry
echo avia_post_nav();echo “<!– end wrap_all –></div>”;
if(isset($avia_config[‘fullscreen_image’]))
{ ?>
<!–[if lte IE 8]>
<style type=”text/css”>
.bg_container {
-ms-filter:”progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config[‘fullscreen_image’]; ?>’, sizingMethod=’scale’)”;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config[‘fullscreen_image’]; ?>’, sizingMethod=’scale’);
}
</style>
<![endif]–>
<?php
echo “<div class=’bg_container’ style=’background-image:url(“.$avia_config[‘fullscreen_image’].”);’></div>”;
}
?><?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/wp_footer();
<div id=”fb-root”></div>
</body>
</html***>March 24, 2016 at 2:56 pm #603100Hi tomato_guy!
Can you please try adding following code to Functions.php file in Appearance > Editor
add_filter("kriesi_backlink","new_link"); function new_link(){ $kriesi_at_backlink = ""; return $kriesi_at_backlink; }
and remove [nolink] and check if that helps?
Edit: I noticed that you are using an older version of the theme. Please update Enfold to the latest version 3.5.1 – kriesi.at/documentation/enfold/updating-your-theme-files/
You can checkout highlighted new features here – http://kriesi.at/archives/enfold-version-3-5-woocommerce-bookings-integration-a-new-layout-mode-5-new-demos-and-moreRegards,
Yigit-
This reply was modified 9 years, 4 months ago by
Yigit.
March 24, 2016 at 2:58 pm #603103Hi Yigit!
Where do I remove [no link] from? I’ve already removed it from where I originally put it in the footer.php file and resaved. Just want to make sure I’m removing the correct thing.
March 24, 2016 at 3:00 pm #603105I added the code to the functions-enfold.php file (no file listed as functions.php) and still shows up the same.
EDIT: just found the functions.php – checking to see if it works now…
-
This reply was modified 9 years, 4 months ago by
tomato_guy.
March 24, 2016 at 3:04 pm #603108…and now my website looks like it crashed. please advise. I added the code you gave me to the functions.php and the site is now showing nothing at all. please help.
March 24, 2016 at 3:08 pm #603112Hi!
Please post FTP logins here privately as well.
Where you have made the changes to remove Kriesi backlink before i posted the code?Cheers!
YigitMarch 24, 2016 at 3:14 pm #603119The changes I made to remove Kriesi backlink before you posted the code was here:
I added the [no link] to “***$copyright = do_shortcode( avia_get_option(‘copyright’, “© “.__(‘Copyright’,’avia_framework).” – “.get_bloginfo(‘name’).”“) [no link] <—added it here);***”
I then deleted it immediately after I originally saved and made it go back to its original settings of:
“***$copyright = do_shortcode( avia_get_option(‘copyright’, “© “.__(‘Copyright’,’avia_framework).” – “.get_bloginfo(‘name’).”“) );***”The pictures were still missing.
March 24, 2016 at 3:59 pm #603161Hey!
Error was fixed. Please update Enfold to the latest version 3.5.1 – kriesi.at/documentation/enfold/updating-your-theme-files/
and then add following code to functions.php fileadd_filter("kriesi_backlink","new_nolink"); function new_nolink(){ $kriesi_at_backlink = ""; return $kriesi_at_backlink; }
Cheers!
YigitMarch 24, 2016 at 4:02 pm #603168Hi Yigit,
Where exactly in the functions.php file do I add the code you gave me? I’m afraid to add it again in fear of the site crashing again. I just added it to the bottom of the code before when you first gave it to me. Please advise.
I appreciate all of your help!
March 24, 2016 at 4:05 pm #603176Hey!
You can add it to the bottom. You do not need to worry. Site crashed because you had another function with the same name, in the second i posted, i changed function name so it will not cause any problem :)
Best regards,
YigitMarch 24, 2016 at 4:07 pm #603177Hi Yigit,
I added it to the bottom (the new code) as suggested and the site crashed again. Please advise.
March 24, 2016 at 4:09 pm #603181Hi!
That happened because you have not updated the theme. Please update the theme as i suggested above firstly and then add the code to functions.php file.
Best regards,
YigitMarch 24, 2016 at 4:13 pm #603189Hi,
I will update the theme as soon as I can. When I update the theme, will that make it so the website is no longer crashed automatically?March 24, 2016 at 4:19 pm #603198Hi!
It crashed the first time because there was another function with the same name. I changed the code i posted a bit and changed function name and added to functions.php file. When you update the theme, this changes will be overwritten (if you would like to make changes on theme files and make them update proof, please use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ ) so when you add the code again in functions.php, it will not crash, because the code i added will be overwritten :)
Best regards,
YigitMarch 24, 2016 at 7:10 pm #603356Thank you Yigit! Now how do I add the link that I’d like replace “theme by Kriesi”?
You’re help is much appreciated.
March 24, 2016 at 8:12 pm #603389Hi!
It seems like backlink has removed already. You can go to Enfold theme options > Footer and change copyright text as needed :)
Regards,
YigitMarch 24, 2016 at 8:39 pm #603409Hi Yigit,
Yes I removed the backlink :) Is there a way I can go back and change the backlink? If I remove the code you gave me perhaps and add another?
March 24, 2016 at 9:28 pm #603430Hi!
Sure, please change the code to following one
add_filter("kriesi_backlink","new_nolink"); function new_nolink(){ $kriesi_at_backlink = 'Here is my content <a href="#">link</a>'; return $kriesi_at_backlink; }
Regards,
YigitMarch 24, 2016 at 10:05 pm #603461You are the best ever Yigit! Thank you so much. All of your help has been much appreciated.
March 24, 2016 at 10:09 pm #603464Hey!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Cheers!
Yigit -
This reply was modified 9 years, 4 months ago by
-
AuthorPosts
- The topic ‘Pictures missing when added [no link]’ is closed to new replies.