Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #226362

    Hi,

    I’d like to add an image to the top of my blog page using the Color Section in the Avia Layout Builder. This works on all pages except for the blog and the blog archives pages. http://192.185.98.211/~quinsonf/2014/02/

    You can see, for example, that it works here – http://192.185.98.211/~quinsonf/us/

    Thanks for the help! Great theme, btw.

    Gabe

    #226912

    Hi connect4consulting!

    If you unset the blog page from the theme options you can then set your blog page by using the ALB. This will let you put a color section before the blog element.

    For the archive pages however they are generated automatically from the archive.php file so you would need to customize the php file to change its layout.

    Cheers!
    Devin

    #226966

    Thanks Devin,

    How do I customize the archive.php file to change the layout and add a full width photo below the menu and above the content?

    Thanks,
    Gabe

    #227163

    Hey!

    You should modify archive.php file in root folder and loop-archive.php file inside wp-content\themes\enfold\includes folder, however you are going to need to hire a freelance developer on Microlancer or Codeable for that kind of customization as it is beyond the scope of support we can provide. You can also request quote here.

    Regards,
    Yigit

    #227164

    Hi Gabe!

    Open header.php and look for line 203, after the div#main opens put this code:

    <?php if(is_archive()){ ?>
            <img src="_IMAGE_">
    <?php } ?>

    If you want to use a Avia shortcode simply replace the img code something like this:

    <?php echo do_shortcode("[SHORTCODE HERE]"); ?>
    

    You can generate the shortcode in a separate Page (without entering ALB).

    Cheers!
    Josue

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