• Hi,
    I wanted to add an embedded opt-in form at the top of the main blog posts page/index, which is my home page. I can’t find an affordable plug-in solution, and I’ve had difficulty in the past editing php files.

    Any help is appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there!

    Your best bet is to add the form above <main ..> in index.php. Something like this might do the trick:

    <?php if ( is_home() ) : ?>
        <!--FORM CONTENTS HERE-->
    <?php endif; ?>
    <main id="site-main" class="site-main" role="main">
    Thread Starter mccleery27

    (@mccleery27)

    Thank you so much for your help!

    I had to change the “show_sidebar to ( ‘right’ ) to achieve the desired look (having the right sidebar flush with the image in the index file at the top.)

    Is there another way to do this so that I don’t have to update the file when you guys update the parent?

    Also, when responsive, the menu bar is on top of the image in the index php. Is it possible to place the index item above the menu bar?

    <?php if ( is_home() ) : ?>
        <img src="https://www.braincandy.io/wp-content/uploads/2014/07/logo-brain-icon-small-stroke-more-pace-e1411078309955.png">
    <?php endif; ?>
    
    <?php ttfmake_maybe_show_sidebar( 'right' ); ?>
    
    <main id="site-main" class="site-main" role="main">

    Hi there!

    In order to avoid overwriting your changes, you will want to make your changes in a child theme. By doing so, you never replace your child theme code and only update the parent theme code, thereby avoiding overwriting your child theme’s code.

    Also, when responsive, the menu bar is on top of the image in the index php. Is it possible to place the index item above the menu bar?

    Not without a customization unfortunately ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Which php file do I edit to add embedded opt-in at top of main posts page’ is closed to new replies.