adsense

How to Embed an Easy PHP Calendar in WordPress





Placing the Calendar Into a Post or Page
1. Log into your WordPress admin area, then click 'Plugins,' and 'Add New.' From here you can search for new plugins to add functionality to your site.
2. Type 'PHP Execution' into the text field in the center of the screen, then press enter.

3. Find 'PHP Execution' in the results list, then click the 'Install Now' link just beneath it. When prompted, click 'Activate Plugin' to turn the plugin on. You are now able to paste PHP code into WordPress posts and pages.
4. Start a new post, or open the post that you want to embed the calendar into, and click the 'HTML' tab. Copy the PHP code for the calendar, and paste it into the post at the position you desire. You can also add any other HTML or CSS that you need.
Placing the Calendar in the Sidebar
5. Log into the WordPress admin control panel, then click 'Appearance,' and 'Widgets.'
6. Locate the 'Text' widget in the main area in the center of the screen, and drag it to the sidebar on the right. Move the text widget to the position you want it to be on the sidebar; to place it between two widgets simply hover in place for a seconds and the widgets will move to make room.
7. Type in a title for the widget in the 'Title' text field, them paste your PHP code in the main text area below it. Click 'Save' when you are done.
Placing the Calendar in Another Area of the Site
8. Log into your WordPress admin area. Click 'Appearance,' then click 'Editor.' This is the Theme Editor; from here you can edit the HTML files for your site.
9. Click the file corresponding to the place on your site you want the calendar to go. For example, if you want it in the footer, click 'footer.php,' or if you want it in the main index page, click 'index.php.'
10. Scroll through the file to the point you want the calendar to go, and paste in your PHP code. If you are using a post or page file, you can place the calendar directly above or below the main content area by pasting the code above or below 'the_content(),' respectively.

Comments

0 Responses to "How to Embed an Easy PHP Calendar in WordPress"

Post a Comment

Popular Posts

About