-
AuthorPosts
-
April 29, 2014 at 8:40 pm #257864
I noticed that there is no way to put a static slider image or any kind of an image at the top of a page designated as the BLOG page. Nothing will show up and i would like to decorate it a bit.
Also, if you turn off the breadcrumbs and titles in the master theme section, it won’t let you turn them back on for individual pages.
So, i can’t put an image at the top of the blog page with the title or the title itself on the BLOG page.
Is there a way to do either of these that I am missing?
Thx in advance.
April 29, 2014 at 8:43 pm #257867Hi!
You can try with this code (put it in functions.php):
function after_head_image_func($content){ if(is_page( 33 )){ echo "<div class='custom_content'><img src='_URL_'></div>"; } } add_action('ava_after_main_container', 'after_head_image_func');
Change 33 by the ID of the blog page.
Best regards,
JosueApril 29, 2014 at 9:09 pm #257879This reply has been marked as private.April 29, 2014 at 9:17 pm #257884Hey!
When you edit the page you can see the ID in the URL path:
Put the code at the end of functions.php, and yes you would have to put the code every time you update the theme but you can avoid this using a child theme.
Yes, that would be the image URL.
Regards,
JosueApril 29, 2014 at 9:27 pm #257889ok thx.
any tips on making a child theme, other than the video?
April 29, 2014 at 9:36 pm #257893Hey!
I think the video pretty much covers all, if you have any questions regarding child themes please let us know.
Also, you can download a child theme ready to upload here:
http://kriesi.at/files/enfold-child.zipCheers,
JosueApril 29, 2014 at 9:39 pm #257894This reply has been marked as private.April 29, 2014 at 9:41 pm #257895This reply has been marked as private.April 29, 2014 at 9:41 pm #257896Sorry i didn’t understand your question, can you please elaborate?
April 29, 2014 at 9:46 pm #257901Oh, i see. When you activate an Enfold child theme you have the option to import the parent theme settings:
Cheers!
JosueApril 29, 2014 at 9:47 pm #257903This reply has been marked as private.April 29, 2014 at 9:47 pm #257904This reply has been marked as private.April 29, 2014 at 9:52 pm #257908Hi!
The video was released before this ‘import parent settings’ feature came out, so now you just need to press that button after you activate the child theme and you are good to go.
Also remember that you can always switch back to the parent theme if you experience something wrong, so you can try it out safely.
Cheers!
JosueApril 29, 2014 at 9:53 pm #257909This reply has been marked as private.April 29, 2014 at 9:59 pm #257914You are welcome, let us know how it goes :)
Regards,
JosueApril 29, 2014 at 9:59 pm #257915This reply has been marked as private.April 29, 2014 at 11:20 pm #257962This reply has been marked as private.April 29, 2014 at 11:49 pm #257972This reply has been marked as private.April 29, 2014 at 11:53 pm #257974Hi!
Can you post a link to the blog page and a blog post?
Regards,
JosueApril 30, 2014 at 12:25 am #257988This reply has been marked as private.April 30, 2014 at 1:11 am #258000Hey!
The code you’d need should be like this one:
function after_head_image_func(){ if(is_singular()){ echo do_shortcode("[av_fullscreen size='extra_large' animation='slide' autoplay='false' interval='5'][av_fullscreen_slide id='2626'][/av_fullscreen]"); } } add_action('ava_after_main_container', 'after_head_image_func');
You’d need to change the av_fullscreen shortcode by the one of yours, to see the generated shortcodes in a Page refer to this article:
http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/Best regards,
JosueApril 30, 2014 at 1:12 am #258001I know this may be a little confusing if you don’t have the coding skills, i can try do it for you if want but i’d need a temporary admin account to do it.
April 30, 2014 at 1:26 am #258013This reply has been marked as private.April 30, 2014 at 1:27 am #258015Ok, reply back to this topic when you are done, don’t forget to put the login details as a private reply.
Best regards,
JosueApril 30, 2014 at 1:48 am #258029This reply has been marked as private.April 30, 2014 at 1:49 am #258030This reply has been marked as private.April 30, 2014 at 1:50 am #258031Hi,
Yes, they are private.
Please post the temporary admin account, a FTP access would be helpful too, just in case i need to rollback the functions.php via FTP.
Regards,
JosueApril 30, 2014 at 1:56 am #258036This reply has been marked as private.April 30, 2014 at 1:57 am #258037This reply has been marked as private.April 30, 2014 at 1:57 am #258038Use any of yours, but if you don’t have one use avia.josue at gmail dot com.
-
AuthorPosts
- The topic ‘Page selected as main BLOG page does not allow images’ is closed to new replies.