-
Search Results
-
Topic: footer problem
Hi,
I get an error in my footer. http://www.e-conomy.nl
I think I removed something wrong.How can I restore this?
The footer.php code is now:
<?php
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++)
{
if($i != 1) $class .= ” el_after_{$class} el_before_{$class}”;
echo “<div class=’flex_column {$class} {$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 ?>
<!– end main –>
</div><?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 = apply_filters(“kriesi_backlink”, ” – Enfold Theme by Kriesi“);//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
echo “<nav class=’sub_menu_socket’ “.avia_markup_helper(array(‘context’ => ‘nav’, ‘echo’ => 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
);wp_nav_menu($args);
echo “</nav>”;
?></div>
<!– ####### END SOCKET CONTAINER ####### –>
</footer><?php
} //end nosocket check}
else
{
echo “<!– end main –></div>”;
} //end blank & nofooterarea check//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();
?>
‘ id=’scroll-top-link’ <?php echo av_icon_string( ‘scrolltop’ ); ?>><span class=”avia_hidden_link_text”><?php _e(‘Scroll to top’,’avia_framework’); ?></span>
<div id=”fb-root”></div>
</body>
</html>Thanks!
I previous started this topic and it was closed after another participant responded.
Myself: ” I would like to be able to replace the next and previous arrows in the Advanced Layer Slider with custom .png images. Is this possible? If so where can I swap the images?”
Moderator:”Hi!
The two buttons get this classes respectively:
.ls-nav-prev{ .. }
.ls-nav-next{ .. }Play around with the CSS properties, like background.”
Myself: “That allows me to style the existing arrows (change the arrow color, arrow background color/images etc.) How can I replace the arrow in the square with a completely different .png?”
The other Participant: “it’s not a .png It’s text added with
#top .avia-layerslider .ls-nav-next:before {
content: “”;
font-family: ‘entypo-fontello’;
}I realize that the existing navigation items are not .pngs but I would like to be able to use .pngs instead. Even when I change the existing arrow’s background to an image the image still appears within a box.
Hi there –
Trying to set up a very simple blog with images, text and in some cases video, where the images display at full size with no light box or hover. I’ve sent a link to a test blog page in a private reply. The first image on the page is correct but the second has been scaled smaller, it should be 1200px wide native. Using a child theme I have previously attempted to disable the light box and hover customizing functions.php and creating a /js/avia.js as below and per your prior support. But the hover is still on. How do I turn off the hover and make all images display at their native resolution?
Besides the style.css these are the only two files I have in the child folder. Should there be another file in that folder for this purpose?
Also, I want the text to flow wider than the default column width. How can I set that? I tried creating a page without a column but it still set the width of the text to about 600px horizontal which is the width to which the images are constrained.
Thanks.functions.php
<?php/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*//*
* Register frontend javascripts:
*/
if(!is_admin())
{
add_action(‘wp_enqueue_scripts’, ‘avia_register_child_frontend_scripts’, 100);
}function avia_register_child_frontend_scripts()
{
$child_theme_url = get_stylesheet_directory_uri();wp_dequeue_script(‘avia-prettyPhoto’);
wp_dequeue_style(‘avia-prettyP’);
wp_dequeue_style(‘avia-custom’);//register js
wp_register_script( ‘avia-default-child’, $child_theme_url.’/js/avia.js’, array(‘jquery’), 1, false );
}?>
js/avia.js
function avia_lightbox_callback(elements,ww,wh){
(function($){
elements.each(function()
{
var el = $(this);
if(!el.hasClass('noLightbox'))
{
el.addClass('noLightbox');
}if(!el.hasClass('noHover'))
{
el.addClass('noHover');
}
});jQuery('a.lightbox').on('click', function() { return false; });
})(jQuery);
}I have 3 theme hacks that I have to update every time you update, perhaps you guys can easily point me in the right direction with them? The first hack adds title tag to the logo- for whatever reason the theme does not add it correctly.
Theme/framework/php/function-set-avia-frontend.php
Line 426 to:if($logo = avia_get_option('logo')) { $logo = "<img src='{$logo}' alt='{$alt}' title='{$alt}'/>"; $logo = "<$headline_type class='logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>"; } else { $logo = get_bloginfo('name'); if($use_image) $logo = "<img src='{$use_image}' alt='{$alt}' title='{$alt}'/>"; $logo = "<$headline_type class='logo bg-logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>"; }I manually added in title='{$alt}’ in both statements to get the title to work.
The second hack is to add text to the cart button, and to hide it with a CSS indent.
Edit config.php in enfold\config-woocommerce\config.php
Line 758$output .= "<a class='cart_dropdown_link' href='".$link."'><span ".av_icon_string('cart')."><span class='hide'>Cart</span></span></a><!--<span class='cart_subtotal'>".$cart_subtotal."</span>-->";The hide class has my indent/hide code on it.
The last hack is to add customability for visibility to theme menu’s, which I found in your forum here.
Add code to enfold/functions.php
add_theme_support(‘avia_conditionals_for_mega_menu’);
On line 17
Under
if(isset($avia_config[‘use_child_theme_functions_only’])) return;Reference: From <https://kriesi.at/support/topic/enfold-conditional-menu/>
Is there any way to bring this into the child theme functions.php so I can stop hacking the theme?
Thank you guys so much for the help!
Hello
I always use that: add_theme_support(‘avia_template_builder_custom_css’); fo styling
It”s great but i need to add class to colunms layout like:
div class=”flex_column av_one_half first avia-builder-el-6 el_after_av_image MYCLASS ”
thanksI was looking for a different onhover effect for the Enfold portfolio. With the help of some Googling I changed the arrow to a slideover-excerpt-text effect.
To change this you have to know how to code – preferably in a child theme that you can download here:http://bit.ly/enfold-child
Example of onhover effect:
http://i40.tinypic.com/ndvqpz.jpg
What did i change:
PORTFOLIO.PHP (Version: 2.4.5)New code:
somewhere from line 395 (fullwidth portfolio) I changed some settings and added some classes. This is not very clean code but it can help you achieve this very easily.else { $extraClass .= ' default_av_fullwidth '; $output .= "<div data-ajax-id='{$the_id}' class=' rozepitem grid-entry flex_column isotope-item all_sort {$style_class} {$post_class} {$sort_class} {$grid} {$extraClass}'>"; $output .= !empty($excerpt) ? "<a href='{$title_link}' title='".esc_attr(strip_tags($title))."'><div class='rozeptxt grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false)).">".$excerpt."</div></a>" : ''; $output .= "<article class='main_color inner-entry' ".avia_markup_helper(array('context' => 'entry','echo'=>false)).">"; $output .= apply_filters('avf_portfolio_extra', "", $entry); $output .= "<".$link_markup[0]." data-rel='grid-".avia_post_grid::$grid."' class='grid-image avia-hover-fx'>".$custom_overlay.get_the_post_thumbnail( $the_id, $image_size )."</".$link_markup[1].">"; $output .= !empty($title) || !empty($excerpt) ? "<div style='z-index:100;box-shadow: 0px -5px 20px #888888;' class='grid-content'><div class='avia-arrow'></div>" : ''; if(!empty($title)) { $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false)); $output .= '<header style="z-index:100;" class="entry-content-header">'; $output .= "<h3 class='grid-entry-title entry-title' $markup><a href='{$title_link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>"; $output .= '</header>'; } $output .= !empty($title) || !empty($excerpt) ? "</div>" : ''; $output .= '<footer class="entry-footer"></footer>'; $output .= "</article>"; $output .= "</div>"; } $loop_counter ++; $post_loop_count ++; $extraClass = ""; if($loop_counter > $columns) { $loop_counter = 1; $extraClass = 'first'; } }Then i added a jQuery part in a JS file (e.g. shortcodes.js):
$('.rozeptxt').animate({ opacity:'0', top:'300px', }); $('.rozepitem').hover( // Over function(){ $(this).find('.rozeptxt').animate({ opacity:'0.9', top:'0px', }); } , // Out function(){ $(this).find('.rozeptxt').animate({ opacity:'0', top:'300px', }); } );In the custom CSS-field I added this:
.image-overlay { display: none!important; } .entry-title {font-weight:bold;font-size:13pt;} .rozeptxt{color:#7c6853;font-size:13pt;position: absolute;top:0px;left:0px; background: rgba(255,255,255,0.9);width: 100%;height: 100%;z-index:50;padding:20px;} .rozepitem{display: block;float: left; position: relative;overflow:hidden;}I know the code can be a lot cleaner, but i saw other people wanting this – so maybe this helps them create something awesome.
Is there a way to have other elements animate in when a user scrolls to wherever that element is?
like the icon lists and images can.I have a special header element and I wanted that to animate in so i tried to assign a custom css class to the element and apply some css that an animated icon had.
Here is what I got, but it doesn’t work:
#top .jrm-easyas { animation: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s normal none 1 avia_appear; opacity: 1; transform: scale(1); }If I apply other properties such as border and background color, they do appear, so I know the class is correct ad active.
Any ideas on how to get that animation working?
I would love to be able to animate whatever I wanted in :)thanks!!!!
Topic: Custom CSS Image Left
I read your documentation but need more specific instructions to help me with adding a margin to all images with a class of alignleft.
I would like to insure that the text will wrap with a 10px margin on the right and bottom. I would like to set it as a default so that other users do not have to fiddle with it when adding a post.Please explain exactly where I can make these changes and what I need to add. I tried to add Custom CSS to the custom.css file but don’t think this is correct. Is this what I need to add to it?
/* General Custom CSS */
add_theme_support(‘avia_template_builder_custom_css’);
clb-alignleft
#top .clb-alignleft {
margin-right: 10px;
margin-bottom:10px;
}
If this is correct, then will the styling be automatically applied when an image is uploaded and set as “left” when adding to a page or post?
Thank you!
