• Resolved ksoussou

    (@ksoussou)


    Hi,
    I have created a new page for my website and haven’t created a tab in the menu bar. Instead, visitors will click a word in the Home page that will open the new page. I have also created a template for the new page with the code displayed below.
    When the new page opens up, the content is there but the banner and the CSS declaration (a border around the content) are not visible for unknown reasons.
    Would appreciate it if you can help me fixing this problem.
    Thanks
    Khalil

    <?php
    /*
    Template Name: Engagement Information
    */
    ?>
    
    <?php get_header(); ?>
    <?php
    	$fid=902;
    $post = get_post($fid); //assuming $id has been initialized
    setup_postdata($post);
    ?>
    	<div class="banner_img">             	
    		<img src="<?php echo get_field('banner_image');?>" alt="" />
    			<div class="banner_caption">	
    				<p />               
    					<span class="author"></span>
                </div>
        </div>
    
    <!--content area start-->
    <section class="body_content">
    <div class="container">
    	<div class="row">
    		<div class="content_block_1 clearfix">
    			<div class="page-heading clearfix">	
    				<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
    					<tr>
    						<td align="left" valign="middle" class="patner_bg-2">
    							<table border="0" align="left" cellpadding="0" cellspacing="0">
    								<tr>
    									<td align="left" valign="top" bgcolor="#FFFFFF"><img src="<?php echo get_template_directory_uri(); ?>/img/about_ico.png" width="45" height="46" alt=""/></td>
    										<td align="left" valign="middle" class="partern_heading title_box other_title">
                          						<h2 class=""><span class="change_color_1">Terms and Conditions</span></h2>
                          					</td>
                        			</tr>
    							</table>
    						</td>
    	              	</tr>
    	            </table>
    			</div>
    
    	<!--engagement_information content area start-->
    			<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 no-pad-left">
    				<div class="information"><?php the_content();?>
    				<?php
    					wp_reset_query();
        				?>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>
    </section>
    	<!--engagement_information content area end-->
    <!--content area end-->
    <!--footer area start-->
    
    <?php get_footer(); ?>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Can you please share the URL of the page where you have set this template?

    Thread Starter ksoussou

    (@ksoussou)

    Hi,
    just before receiving your response I have deleted the image and inserted a different one and it works. I then deleted it again and replaced it with the first and it is also working. I don’t know what is happening but the problem is now resolved.
    However I still have a problem with the CSS, which should show a border around the content and would appreciate your help.
    On the home page, when clicking the words ” Engagement Information”, the troubled page will open. The url is: http://www.eleganceaccounting.com.au/engagement-information/.
    Also the CSS selector is “.engagement information”
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Banner’ is closed to new replies.