WordPress.org

Ready to get started?Download WordPress

Forums

Business Hours Plugin
[resolved] Changing Headings Open Close to Lunch Dinner (2 posts)

  1. amir.pourafzal@gmail.com
    Member
    Posted 1 year ago #

    How do I change "Open" and "Close" headers into "Lunch" and "Dinner".
    This would be the business hours of a restaurant.
    (I am new to wordpress and have no programming knowledge whatsoever...)
    Thanks

    http://wordpress.org/extend/plugins/business-hours-plugin/

  2. Daniel Dvorkin (MZAWeb)
    Member
    Plugin Author

    Posted 1 year ago #

    1) Create a business-hours folder in your theme
    2) Create a table.php file in that folder
    3) Add this code:

    <?php if ( $collapsible_link ) { ?>
    <div class="business_hours_collapsible_handler_container">
    	<a href="#"><?php _e( $collapsible_link_anchor, "business-hours" );?></a>
    </div>
    <div class="business_hours_collapsible">
    <?php } ?>
    
    	<table width='100%'>
    		<tr>
    			<th><?php _e( "Day", "business-hours" );?></th>
    			<th class='business_hours_table_heading'><?php _e( "Lunch", "business-hours" );?></th>
    			<th class='business_hours_table_heading'><?php _e( "Dinner", "business-hours" );?></th>
    		</tr>
    		<?php
    		foreach ( $days as $id => $day ) {
    			$this->_table_row( $id, $day );
    		}
    		?>
    
    	</table>
    
    <?php if ( $collapsible_link ) { ?>
    </div>
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.