WordPress.org

Forums

Zenon Lite
[resolved] Home page block code (3 posts)

  1. danyat10
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to put google maps embed code and facebook shortcode into one of the home page blocks, but it seems to be stripping out the iframe element. Is this something that can be changed?

    http://www.saddleworthsuits.co.uk/

    Thanks.

  2. Towfiq I.
    Member
    Theme Author

    Posted 2 years ago #

    Open up index.php and replace this:

    <?php if ( of_get_option('block3_textarea') ) { ?>
            <div class="midrow_block">
            <div class="mid_block_content">
            <h3><?php echo of_get_option('block3_text'); ?></h3>
            <p><?php echo of_get_option('block3_textarea'); ?></p>
            </div>
            </div>
             <?php } ?>

    with this:

    <div class="midrow_block">
            <div class="mid_block_content">
            <h3><?php echo of_get_option('block3_text'); ?></h3>
            <p><?php echo of_get_option('block3_textarea'); ?>
    
    //Add your google map code here.....
            </p>
            </div>
            </div>
  3. danyat10
    Member
    Posted 2 years ago #

    Perfect, thanks :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic