• In my footer there is default text of my website address. Unfortunately, my website name is long so the text is overlapping the box beside it. I need to remove this default website address. The offending code in the Footer.php is, I believe:

    <div id="logo">
    		<?php if(pagelines_option('footer_logo') && VPRO):?>
    			<a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>">
    				<img src="<?php echo pagelines_option('footer_logo');?>" alt="<?php bloginfo('name');?>" />
    			</a>
    		<?php else:?>
    			<h1 class="site-title">
    				<a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>">
    					<?php bloginfo('name');?>
    				</a>
    			</h1>
    		<?php endif;?>
    	</div>

    But when I delete it, there is no change. Other attempts to edit crashed my site. Now I’m paranoid because I clearly do not know what to remove. Any help appreciated. Here is the full footer.php:

    <?php
    /*
    
    	Section: Simple Footer Navigation
    	Author: Adam Munns
    	Description: Creates footer navigation.
    	Version: 1.0.0
    
    */
    
    class PageLinesSimpleFooterNav extends PageLinesSection {
    
       function __construct( $registered_settings = array() ) {
    
    		$name = __('Simple Footer Navigation', 'pagelines');
    		$id = 'simple_footer_nav';
    
    		$default_settings = array(
    			'description' 	=> __('A single column footer for a simpler footer navigation', 'pagelines'),
    			'workswith' => array('footer'),
    			'description' => 'Footer Site Navigation.',
    
    			'icon'			=> PL_ADMIN_ICONS . '/map.png'
    		);
    
    		$settings = wp_parse_args( $registered_settings, $default_settings );
    
    	   parent::__construct($name, $id, $settings);
       }
    
    	function section_persistent(){
    		register_nav_menus( array( 'footer_nav_simple' => __( 'Page Navigation in Simple Footer Section', 'pagelines' ) ) );
    	}
    
       function section_template() {
    	?>
    	<div id="logo">
    		<?php if(pagelines_option('footer_logo') && VPRO):?>
    			<a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>">
    				<img src="<?php echo pagelines_option('footer_logo');?>" alt="<?php bloginfo('name');?>" />
    			</a>
    		<?php else:?>
    			<h1 class="site-title">
    				<a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>">
    					<?php bloginfo('name');?>
    				</a>
    			</h1>
    		<?php endif;?>
    	</div>
    
    	<?php function nav_fallback_simple() {?>
    			<ul id="simple_footer">
    			  	<?php wp_list_pages( 'title_li=&sort_column=menu_order&depth=1'); ?>
    			</ul><?php
    		}
    	if(function_exists('wp_nav_menu')):
    		wp_nav_menu( array('theme_location'=>'footer_nav_simple','depth' => 1,  'fallback_cb'=>'nav_fallback_simple') );
    	else:
    		nav_fallback();
    	endif;?>
    
    	<span class="terms">
    		<?php e_pagelines('footer_terms');?>
    	</span>	
    
    <?php }
    
    }
    /*
    	End of section class
    */
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Bad_Egg

    (@bad_egg)

    P.S. I made a screen shot but I can’t post it here. The address is https://www.mademers.com/globalindieauthor. The problem you can see is on the left side of the footer.

    Hi,

    I’m not sure but I think this may help. IN your footer, find this:

    <div id="logo">
    		<?php if(pagelines_option('footer_logo') && VPRO):?>
    			<a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>">
    				<img src="<?php echo pagelines_option('footer_logo');?>" alt="<?php bloginfo('name');?>" />
    			</a>
    		<?php else:?>
    			<h1 class="site-title">
    				<a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>">
    					<?php bloginfo('name');?>
    				</a>
    			</h1>
    		<?php endif;?>
    	</div>

    … and delete everything between <div id=”logo”> and the NEXT </div> ONLY. That should take out the automatic link creaiton.

    Let me know if it worked…

    Regards,

    Styzer

    Thread Starter Bad_Egg

    (@bad_egg)

    Hi Styzer:

    That is the code I originally deleted with no effect. I did error in my original post, however; the posted code is from section.footer_nav.php and not footer.php. Perhaps that is my error. But my footer.php contains only the following:

    </div>
    </div>
    <?php endif; ?>
    </div> <!-- END #dynamic-content -->
    
    <div id="morefoot_area"><?php pagelines_template_area('pagelines_morefoot', 'morefoot'); // Hook ?></div>
    <div class="clear"></div>
    
    </div> <!-- END #page-main from header -->
    </div> <!-- END #page-canvas from header -->
    </div> <!-- END #page from header -->
    
    <div  id="footer">
    	<div class="outline fix"><?php
    		pagelines_template_area('pagelines_footer', 'footer'); // Hook
    		pagelines_register_hook('pagelines_after_footer'); // Hook
    		pagelines_cred();
    	?></div>
    </div>
    </div>
    <?php
    	print_pagelines_option('footerscripts'); // Load footer scripts option
    	wp_footer(); // Hook (WordPress)
    ?>
    </body>
    </html>

    Any ideas?

    OK, but can you try to use the work-around I posted – but on the section.footer_nav.php page? Make sure you make a copy of the code in section.footer_nav.php before making any change so you can always go back and revert to the original.

    Let me know how you do…

    Regards,

    Styzer

    Thread Starter Bad_Egg

    (@bad_egg)

    Styzer:

    I had already tried what you suggested prior to posting; it had no effect. That’s why I am stymied. It would appear to be the obvious solution but it was not.

    Cheers,
    Michelle

    Michelle,

    I know it’s a crazy proposition, but if you want to email me at [email protected] I may be able to help you further.

    Here is my portfolio: https://www.creativeforge.org

    Regards,

    Styzer

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Editing Footer PHP in Pagelines’ is closed to new replies.