Dispelled.ca » CSS

By: Dispelled  09-12-2011
Keywords: plugin

First, upload the theme you want to use for mobiles to your wpcontent/themes directory. Then add the plugin. Smooci is just like any normal WordPress plugin, you activate it in plugins and then find it’s options under Settings > Smooci. Pick your mobile theme from the dropdown menu, then save. Done.

<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

Cut out these two pieces. Then make the code read like this.

<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
 <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><div id="container">
    <div id="post-<?php the_ID(); ?>">
    <div><?php mtheme_thumb(); ?></div>
     <div>
<h2><?php the_title(); ?></h2>
</div>                
  <div>
  Posted on <?php the_time('F j, Y') ?>
  </div>
  <br clear="all" />  
  </div>                     
 </a></div>
 <?php endwhile; ?>

Notice that I also moved the container div to inside the loop to get it to display properly. Next, it wouldn’t display pages. This seems to be a problem with the get_the_image() function. I commented out these two lines.

<?php /* $varimage = get_the_image(array('echo' => false)); ?>
<?php if ($varimage) {get_the_image(array('image_class' => 'imgpost'));} */ ?>

Then pages display their content. Then I needed to change the colors of the site. I looked around style.css and couldn’t find anything. It turns out it is hidden in theme settings. Since I am not setting this theme to be the main theme of the site, this seems a bit backwards. Set the theme of your site to the mobile one, go into current theme settings, change the width to 100% and the color to whatever you like. Then change your theme back to your regular one. I think I will just delete this part of the theme and set the width and colors the normal way in style.css.

The information in this article was current at 06 Dec 2011

Keywords: plugin

Contact Dispelled

Email - none provided

Print this page

Other products and services from Dispelled

09-12-2011

Dispelled.ca » Android

Even though the new Galaxy Nexus is coming out this month, it has a 5MP camera and that is not going to cut it. So I thought the battery had died when it hit the water. Then it went through the washer, full cycle.


09-12-2011

Dispelled.ca » Computers

In the Add Repository dialog that appears, enter “ADT Plugin” for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse. Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer. To run the Hello World application, you need to install at least one Android platform in your SDK environment.


09-12-2011

Dispelled.ca » Farming

I am using Android 2.3.3 with Polaris office on a Samsung Galaxy S2, but it shouldn’t be too much different as long as you have an Excel program. Out in the field farming last year, we kept track of each dump into the cart. Take six columns labeled Date, Bin number, Pounds, Bushels, Crop, and Field. This is saying take the value from it’s column C row 3 and divide it by 50. Layed out the columns with Crop, Pounds, Bushels, and Kilograms.


09-12-2011

Dispelled.ca » Uncategorized

Microprocessors / Microcontrollers – On this section, my Instructor explained we may spend a bit more study time on Microcontrollers, since they are getting used for a lot of applications lately. Things I don’t want to forget, study guides, exam scores, links etc… Since the brain can only store so much information, I figured I am going to need somewhere for the rest of it to go.


09-12-2011

Dispelled.ca » Electronics

The DC collector resistance is simply the collector resistance, where the AC collector resistance is the collector resistor in parallel with the load resistance. The amplifier conducts for the full 360 degrees of the input cycle, always in the linear region, and the output wave is 180 degrees out of phase with the input.