Socrates Premium Wordpress Theme
WordPress Template Tags for Registration and Login Links Added to index.php The additions in Listing 16-7 are standard WordPress template tags. The call to wp_register() produces a link to the registration page, but it does so only if registration is enabled. If you are logged in, however, it produces a link to the administration pages.
Page Template This allows you to select the template for this page. A WordPress theme can contain special template files that are usable for specific pages. If your currently selected theme has any templates defined, you will be able select one from the drop-down list. If your theme does not have templates, the list won't be available.
Second, you use the WordPress template function is_single to test if the reader is viewing a single post. If the function returns true, then you set your CSS class variable to main-content-full. If it is not true, the else part of the clause is executed, setting the CSS class variable to the normal main-content-norm. The main-content building block isn't included. Then you test again whether you are viewing a single page. This time the test is negative. The exclamation mark in front of the is_single function negates the test. This test means, If the page is not a single
Like Drupal 6, WordPress uses many smaller component files for its templates however, the structure of a WordPress theme and the structure of a Drupal theme are quite different. To convert a WordPress theme to Drupal, you will need to combine some files and to split others into smaller components. WordPress will often use a function (ending with parentheses) to store the same kind of information that Drupal stores in a variable (starting with a dollar sign). These differences arise because of the rules created by the template engine used for each of the two systems. A typical WordPress theme maps onto Drupal file names as shown in Table 3.1. A typical WordPress theme maps onto Drupal variable names as shown in Table 3.2. Start with the following steps if you are given a WordPress template, but cannot easily install the blogging tool to confirm the output 2. Create a new .info file that describes your new theme. Be sure to include the name of your theme, a brief description, and the...
Make Money Blogging
It is fine to get started on a hosted solution like Blogger.comor WordPress.com. They will allow you to learn the basics of blogging and web publishing without spending money. As soon as you nail down these basics, however, it is vital to buy your own domain name and to purchase a web hosting package with some company.