Help with importing this

  • Unknown's avatar

    Hi can someone help me with this issue. I’m new to WordPress and I’m picking this up for a friend, they’ve asked me to replace the link with a login box that is embedded into the site.

    Here’s the oriiginal code,

    <?php /* Template Name: Direct template */?>
    <?php get_header(); ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    88
    Years
    worth of experience

    </div>

    </div>
    </div>

    <?php
    if(isset($_SESSION[‘usertype’])) {
    $value = $_SESSION[‘usertype’];
    $value();
    } else {
    new_customer_service();
    }
    ?>

    <?php dynamic_sidebar( ‘testimonials’ ); ?>

    <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’, ‘symphony’); ?></p><?php endif; ?>

    <?php get_footer(); ?>

    So I’m just wanting to input this so that i have a login box embedded into the site.

    src=”https://www.tam-portfolios-online.com/start/RBO-Symphony-IFrameLogin.html”>

    Instead of having this link …

    but once i copy it in like so …

    <?php /* Template Name: Direct template */?>
    <?php get_header(); ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    88
    Years
    worth of experience

    </div>

    src=”https://www.tam-portfolios-online.com/start/RBO-Symphony-IFrameLogin.html”>

    </div>
    </div>

    <?php
    if(isset($_SESSION[‘usertype’])) {
    $value = $_SESSION[‘usertype’];
    $value();
    } else {
    new_customer_service();
    }
    ?>

    <?php dynamic_sidebar( ‘testimonials’ ); ?>

    <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’, ‘symphony’); ?></p><?php endif; ?>

    <?php get_footer(); ?>

    ..and i click update file i get the following message “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”

    Hellppppp!!

  • Hi there,

    You cannot edit theme template files nor add PHP or iframes to pages on sites that are hosted here on WordPress.com. It sounds like your friend’s website is using the WordPress software but is hosted elsewhere.

    The forums that would be applicable for development questions for the site in question would be the WordPress.org forums: https://wordpress.org/support/forums/

    WordPress.com and WordPress.org are quite different – the dotcom version offers hosting plans, whereas the dotorg version refers to the WordPress software that can be installed on any self hosted site. Here’s a link explaining the difference: https://en.support.wordpress.com/com-vs-org/

    Hope this helps!

  • Unknown's avatar

    Ahhh i see thank you for directing me to the correct place :)

  • The topic ‘Help with importing this’ is closed to new replies.