Monday, 17 December 2012

How to get a RSS feed back from Twitter

This method works as we speak, but Twitter are constantly moving the goal posts on this one.

https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=YOURTWITTERUSERNAME





Fix wordpress RSS feed error XML Parsing Error: XML or text declaration not at start of entity Location: */feed/ Line Number 3, Column 1:

I was getting the following error when trying to access the RSS feeds on a website I had built using the 'df_marine' template. Sea this World - Conservation Website

The inspiration for the solution was take from this blog 'Wordpress feed XML errors'

Here' what I needed to do exactly

> BACKUP YOUR SITE
> install the plugin Fix RSS Feed
> in 'wp-admin' > go to 'settings' > 'fix rss feed' and follow the instructions here. >

DONT FOGET to return the permissions to what they where for you own security.

Make sure you finish your website with some .htaccess and robot.txt House Keeping.

After just finishing the website mitweb.co.uk I've a little house keeping to do which I feel is worth documenting The .htaccess file * here I want to achieve a couple of things > make sure any calls to the admin folder goes to a https version > direct any links in search engines to the new relevant pages Here's the code to be added that solves these problems ######################################## RewriteCond %{HTTPS} off RewriteRule ^(wp-admin/.*)$ https://www.mitweb.co.uk/$1 [R=301,L] Redirect 301 /home-heating-oil-devon-cornwall/ http://www.mitweb.co.uk/services/home-heating/ Redirect 301 /agricultural/ http://www.mitweb.co.uk/services/agricultural/ ######################################### ETC ETC Robot.txt I want to disallow robots ( search engine robots ) from the Admin area. ########################################## User-agent: * Disallow: /wp-admnin/

Monday, 10 December 2012

Changing the Gallery on Wordpress site built with Company template and Lightbox Gallery

I've made a short movie for adding images and changing text etc.  Basically its done in the admin->portfolio section.


Also if you need to change the size of the image displayed you go to

> plugins
> Lightbox gallery
> Settings

At the bottom of the page find 'In case that you would like to set the default lightbox size:'

and add a figure here.  ie '800'

Friday, 7 December 2012

Disappearing Plugins inside widgets on Wordpress installation.

After adding a widget space to Wordpress I found a weird problem where the Widget would at first display correctly .  However when going back into wp-admin and viewing the widget the plugins would have disappeared.  As pictured here.

At this point the widget would still display on the website ok.  However once I saved anything in the widgets then the Plugins would also disappear from the website .  The problem was in the naming convention of my items in the sidebar.   So for example I changed ' formBox' to 'formbox'

Thursday, 6 December 2012

how to unzip .tar.gz in windows 8

Free unzip tar.gz files for windows 8

how to unzip .tar.gz in windows 8

Check out 7-zip at http://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/7z920.exe/download?use_mirror=heanet

The only thing here was that I needed to add the application after right clicking and going to 'open with' and 'choose applications'

Go to the folder where '7-zip' is installed and select the '7zFM' application.

Hey presto.

Slider not showing Excerpt text on Wordpress Company template by template Square

When i first set up this template it worked fine.  However after a few weeks of changes the excerpts that go with the slides aren't displaying.  As pictured here.






To sort this out this is what I did.

OPEN.

wp-content/themes/company/slider.php

FIND around line 55 

[code]  if($sliderDisableText!=true){
                               $output .='
';
                                if(!empty($post->post_title )){
                                $output .='

'.$excerpt = get_the_title().'

';
                                }
                                $post_excerpt = $post->post_excerpt;
                                $output .=''.$excerpt = get_the_excerpt().'
';

[/code]








REPLACE with:

   if($sliderDisableText!=true){
                               $output .='
';
                                if(!empty($post->post_title )){
                                $output .='

'.$excerpt = get_the_title().'

';
                                }
                                $post_excerpt = $post->post_excerpt;
                            //    $output .= var_dump($post);
                               $output .='
'.$post_excerpt.'
';