• Hi there, I’m trying to add links to the bottom of my page where the properties are listed (doylestown, etc.). I can’t find where this is in the back end…. The first column (metro management) and the last column (commercial properties) can be found in the widgets section and I can edit those no problem. I view the page source and it says the properties are widgets but are not found in the widget section. They have to be in the theme somewhere I’m guessing but don’t know where to look. Any ideas?

    Thank you!

    https://yourmetropolitan.com/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Looking at the HTML, they may be hardcoded in. In your admin go to Appearance -> Editor -> footer.php (in the right hand column).

    Do the links appear there?

    Thread Starter kellkellkelly

    (@kellkellkelly)

    This is what that looks like:

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the id=main div and all content
     * after. Calls sidebar-footer.php for bottom widgets.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    ?>
    	</div><!-- #main -->
    
    </div><!-- #wrapper -->
    
    	<div id="footer" role="contentinfo">
    		<div id="colophon">
    
    <?php
    	/* A sidebar in the footer? Yep. You can can customize
    	 * your footer with four columns of widgets.
    	 */
    	get_sidebar( 'footer' );
    ?>
    
    			<div id="site-info">
    				&copy; <?php _e( date( 'Y' ) ); ?> Metropolitan Management Corporation &bull; 230 Windsor Avenue &bull; Narberth, Pennsylvania &bull; (610) 667-1700 &bull; <a href="https://yourmetropolitan.com/wordpress/contact-us/" target="_blank">CONTACT US</a> &bull; Site design by <a href="https://www.acquirevisual.com" target="_blank">Acquire, LLC</a> &bull; <a href="?theme=handheld">Mobile Site</a>
    			</div><!-- #site-info -->
    
    			<!-- #site-generator -->
    
    		</div><!-- #colophon -->
    	</div><!-- #footer -->
    
    <?php
    	/* Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    ?>
    </body>
    <script>
    
    jQuery(document).ready(function(){
    if (jQuery('#eModal-1').length) {
    
        var modalclick = '<a href="#" class="eModal-1" style="display: none;">Open Modal</a>';
        jQuery(modalclick).appendTo("body");
        jQuery(".eModal-1").click();
    
      }
    });
    </script>
    </html>
    Thread Starter kellkellkelly

    (@kellkellkelly)

    whoops, actually this is the correct website: https://yourmetropolitan.com/wordpress/

    I’m trying to duplicate the old website within wordpress

    I see the widget is prefixed with “wpb_” which means references a WP tutorial website. That would tell me that you should probably look in the functions.php file. Anything interesting in there?

    Thread Starter kellkellkelly

    (@kellkellkelly)

    Woah! I found it… it was a footer plug-in…

    // mainline (mont co)
    
    echo "<div class='footer-col'>";
    echo "<h3>Main Line<br />Pennsylvania</h3>";
    echo "<ul>";
    $args = array(
    	'post_type'=> 'property',
    	'location'    => 'montgomery-county',
    	'order'    => 'ASC',
    	'orderby' => 'title'
    );
    query_posts( $args );
    while(have_posts()) : the_post(); 
    
    $title = get_the_title();
    $link = get_permalink();
    
    echo "<li><a href='{$link}'>{$title}</a></li>";
    
    endwhile;
    echo "</ul>";
    echo "</div>";

    I think I figured out what the issue is… there are two properties that are in Delaware County (and checked off as such on their property page) that I need to appear at the bottom under the heading “main line.” In the code, it’s telling to pull from the location of “Montgomery County” only. I tried to tell it to do both by entering it like this:

    'location'    => 'montgomery-county', 'delaware-county',

    But it continued to just pull montgomery county. I tried just delaware county just to make sure it would work and it did–just pulled the two delaware county listings. Any ideas? :-/

    Thanks so much for your help & patience! :}

    Try this:
    'location' => array('montgomery-county', 'delaware-county'),

    No guarantees!

    Thread Starter kellkellkelly

    (@kellkellkelly)

    Nope, it created a bunch of warnings about splitting where the links were showing up in the footer. :{

    Actually, if it’s just one or two properties, this isn’t the correct way to do it because you’ll end up pulling in ALL properties.

    A simple solution might be to create a duplicate post of each property for the other county. Would that work?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can't find footer widget in back end?’ is closed to new replies.