Build Your Own Business Website header image

Conditional Statement

Part 9 – Introduction to WordPress Conditional Statements

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

We’re looking at this sticky menu that we just created using PHP for this Genesis website. But there is one thing that's not that great about this menu and now you can see it. See, it doesn't have the ability to collapse and it would be great when it’s viewed on a mobile device not

Lesson 12 – Part 8 – Create a Controlling Function

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

You notice how we have a whole bunch of functions now that we’ve made in this creating custom sidebars in the Thesis theme lesson. We have our sidebars that are all registered and we've got a function for the feature_box_sidebar, the function for the alternate_sidebar, a function for the fat_footer_sidebar and a function for the

Community Library Website Case Study – Part 37, Add WordPress Menus to Archive Pages

Difficulty Level -

Filed Under Topics - , , ,

Listed Under Lesson Subjects -

Applies to - ,

This is the thirty seventh in a series of live lessons on using WordPress and Thesis as a Content Management System (CMS). In this lesson we continue working on the menus in our new catalog page. We add the menus to the archive pages by creating a new function in custom_functions.php. The menus now appear

How to Create a Simple Video Squeeze Page

Difficulty Level -

Filed Under Topics - , ,

Listed Under Lesson Subjects -

A member asked how he can build a simple video squeeze page out in Thesis. What he wants is a page with no header or footer.  He does want to retain the content and the sidebar.  In the sidebar he’ll put an opt-in form and in the content he’ll embed a video.  We look at

Syntax Error in Conditional Statement – if(is_page())

Difficulty Level -

Filed Under Topics - , ,

Listed Under Lesson Subjects -

A member used some suggested code on the forum to remove the H1 tag from a specific page.  She discovered that the code worked fine if the conditional statement used the page slug but did not work if using the page id.  We discovered the syntax error that led to the problem of the page

Troubleshooting Thesis Custom Templates – Part 4 – Apply to Multiple Pages

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

The member wants to make his custom template apply to multiple pages. We discuss how to use a conditional statement with multiple page ids to accomplish this. An example of such code is provided below. The code below demonstrates how to create a single function that applies multiple custom templates to multiple pages: [S3VIDEO file='public/liveanswers/LA12-20-10a1-custom-templates-part4.mp4'

How to Display Different Header Images on Different Pages

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

This member wants to add different header images on different pages of his Thesis based WordPress Website. He wants certain images displayed based on the context or parent of the page. I discuss the conditional statement and point him to the videos that teach how to do this. [S3VIDEO file='public/liveanswers/LA12-06-10b-different-header-images-different-pages.mp4' bgimage='https://www.byobwebsite.com/wp-content/uploads/2010/12/LA12-06-10b-header.jpg' displaymode='overlay'] By the way,