Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions & Updates (http://forum.bytesforall.com/forumdisplay.php?f=54)
-   -   Patch 113-04: the site may be squished on a mobile device or tags over run sidebar (http://forum.bytesforall.com/showthread.php?t=19542)

juggledad Feb 2, 2013 07:54 PM

Patch 113-04: the site may be squished on a mobile device or tags over run sidebar
 
1 Attachment(s)
Description: If you view your site on a mobile device (iPod, iPhone etc), you may see that the site is 'squished' to the left. You may also notice on a non mobile device that the 'tags' and/or 'categories' of a post bleed into the sidebar. This issue will show up when a post has many tags or categories and the seperator is a NULL character.

FIX: This can be easily fixed by adding a seperator character as shown in the Limited PHP code for 'the_tag()'

In the virtual sub template 'postformat.php' change the line
HTML Code:

                <?php the_tags( '<p class="post-tags">', '', '</p>' ); ?>
to
HTML Code:

                <?php the_tags( '<p class="post-tags">', ' &middot; ', '</p>' ); ?>
If you would like to make this a permanent fix, so if you reset the 'postformat.php' file or reset all settings, you can edit the theme file 'montezuma/admin/default-templates/sub-templates/postformate.php' and change line 27 from
HTML Code:

                <?php the_tags( '<p class="post-tags">', '', '</p>' ); ?>
to
HTML Code:

                <?php the_tags( '<p class="post-tags">', ' &middot; ', '</p>' ); ?>
or replace the file montezuma/admin/default-templates/sub-templates/postformate.php with the attached file which has the correction already applied.


All times are GMT -6. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.