• Creator
    Topic
  • #8278

    Paul Jabas
    Spectator

    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

Viewing 3 replies - 1 through 3 (of 3 total)
Replies
  • Roman
    Keymaster
    Post count: 2601
    #9158 |

    might I see the website?

    Paul Jabas
    Spectator
    Post count: 11
    #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
    Keymaster
    Post count: 2601
    #9164 |

    I have not tested it so I cannot confirm that…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Background Image and contact template with google maps’ is closed to new replies.