
-
AuthorPosts
-
May 24, 2015 at 7:28 pm #449265
Hi,
First of all, thanks a lot for your theme, I think it’s the best WordPress theme ever ! I use it for many of my websites and my client’s.
I spent hours trying to change some things and couldn’t find a solution, so I finally bring myself to ask you.
I didnt’ know if I had to ask one question per topic, so I here are all of my questions:
1/ I want a transparency header to all the pages of the website, how can I do to change it within change it in every admin page ? Even if I do this way, I can’t change archives pages such as results pages. It is certainly in the header.php file but I don’t know what code to add or change.
2/ When we click in the mobile menu, I want the menu to close when we click outside the menu : it only closes when we click on the advanced menu toggle again. How can we do that ?
3/ I want to change the read more text, I’ve changed the translation in the poedit file, I also tried this in this topic https://kriesi.at/support/topic/how-to-change-read-more/ but nothing changed (I want to change it to “Lire l’article”).Thanks a lot for your help !
Kind regards,Flo
May 26, 2015 at 12:24 pm #450020Hi Flo!
1. Header transparency can’t be enabled on WordPress-generated pages (archives, 404, etc) because these layouts are not suited to have a transparent header, you can’t directly control the layout of these, for example you can’t put a Color Section or a Slider as the first element, it would look like this – http://a.pomf.se/wcngxf.png.
2. As far as i know the mobile menu occupies the whole screen when opened, can you post the link to your website?
3. Please post a link to your blog
Regards,
JosueMay 26, 2015 at 12:53 pm #450039This reply has been marked as private.May 26, 2015 at 12:58 pm #450044This reply has been marked as private.May 27, 2015 at 5:12 am #450403Hey!
1. Yes it’s possible but it will require some custom coding:
1.1. Use this code in your child theme functions.php to enable header transparency site-wide:add_filter('avf_header_setting_filter', function($header) { $header['header_transparency'] = 'header_transparency'; $header['header_class'] .= " av_header_transparency"; return $header; }, 10, 1);
1.2. To include content before the main content on non-singular pages you can use the
ava_after_main_title
hook, would be something like this:add_action('ava_after_main_title', function() { if(!is_singular()){ ?> Content Here, you can put the generated HTML code of a Color Section here. <?php } });
2. You’d need to use a custom script for that, something like this could work:
(function($){ $("#advanced_menu_toggle").on('click', function(){ setTimeout(function(){ $("#wrap_all.show_mobile_menu").on('click', '#main, #header', function() { $("#advanced_menu_hide").trigger('click'); }); }, 100); }); })(jQuery);
You can hook this script into get_footer but it would be optimal to have this on a dedicated file in your child theme (see wp_enqueue_script).
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.