• Closed
  • Paul Jabas
    Spectator
    February 20, 2014 at 7:23 pm #8278

    Hi Roman,

    I made a child theme from alora and am using a background image (height: 360px, no-repeat) for main content area and the page content top padding value of 370px, so the other (e.g. text) content starts directly below the image. Everything works fine except in pages with template: contact. Here the google maps area places directly in the range where usually the background image resides and the image and padding is below google maps and contact form.

    Please advise what code to modify and where in contact.php or header.php.

    Thanks, Paul

    Roman
    Participant
    Posts: 3147
    February 20, 2014 at 7:52 pm #9158

    might I see the website?

    Paul Jabas
    Spectator
    Posts: 11
    February 21, 2014 at 11:53 am #9162

    Hi Roman,

    as mentioned in other post, the side is currently under development and only local. Here is the code I changed meanwile in contact.php:
    On line 574 I added the phrase: && !is_page_template(‘contact.php’, true) to avoid the background image of main content to be shown

    <?php if($data[‘content_bg_image’] && !get_post_meta($c_pageID, ‘pyre_wide_page_bg_color’, true) && !is_page_template(‘contact.php’, true)): ?>

    I hope this is only happening with contact template and not with others where portfolio or sliders are concerned.

    Thanks, anyway. Paul

    Roman
    Participant
    Posts: 3147
    February 21, 2014 at 2:27 pm #9164

    I have not tested it so I cannot confirm that…