Home » WordPress (Page 3)
Category Archives: WordPress
WordPress/Google webtool error – missing author
While not a big problem you can simply insert this code snippet in a WordPress PHP file that suits. A good place is in your footer.php file where the message "Proudly powered by WordPress" lies. A text display of the WordPress websites author's name or perhaps a link to the author's profile <span class='vcard author'> […]
How do I add a background image to WordPress’s Twenty Fourteen’s content area?
You should always create a child theme before modifying your sites CSS. Aim: To achieve the results you can see on this page, in this case, a stainless steel background image on the content area. Set the id #main to your background image then set the various classes areas making up the Twenty Fourteen content […]
How do I make “no comments allowed” the default for all new WordPress webpages and posts
Go to the WordPress website’s Dashboard menu option Settings Choose Discussion Then uncheck or tick the box labelled “Allow people to post comments on new articles” You can also hack the comment code in the PHP files such as single.php, page.php or anywhere it exists. A simple way to find the code is to a […]
Adding SEO to WordPress
Technical SEO’s meta tag components can be added to a WordPress website by installing a plug in like “Add Meta Tags” by George Notaras. A short tutorial on adding WordPress plugins can be found here The three technical component that matter most are Title Tag Description Tag Keyword Tag Page Title Tag : The […]
Display the width of your device’s screen in a WordPress Page
Simply insert this piece of JavaScript where you would like to see the width displayed. This is useful to test a devices resolution. <div id="widthInfo"> </div> <script> var x=screen.width; var para = document.createElement("P"); var t = document.createTextNode(x); para.appendChild(t); document.getElementById("widthInfo").appendChild(para); </script> Using “document.write(screen.width)” is not going to work by the way.
Google says robots.txt ok, but description for this result is not available.
So you have set up your WordPress site along with a robots.txt and a Google web tools account. Google says the robots.txt file says the website crawl is allowed You try looking at www.yoursite.co.uk/robots.txt etc and the file displays something like these, i.e. they are ok… User-agent: * Disallow: User-agent: * Disallow: /wp-admin/ Google happily […]
WordPress, SEO and robots.txt
Robots.txt – file. Robots.txt tells good search engines which pages are to be included and which to ignore and not index. For example the simple lines: User-agent: * Disallow: / In a text file called robots.txt in your WordPress root folder will stop your site being included in indices like Google. The following however is […]
Creating a WordPress menu exclusively for mobile responsive website design
First you need to add a function to your function.php file. Do this in your child theme folder. See creating a child theme. First create the mobile menu in the Appearance -> Menus admin screen. Call it mobile-menu. Now, in your theme’s functions.php, you need to write a function to register th names of your […]
Creating a WordPress child theme
As a WordPress developer you will need to get to grips with modifying the themes you are using for a website during its design. Child versions of themes are very important if you do modify a theme and wish to avoid losing your code during an update of the parent theme. Create a folder on […]
What type of access to my WordPress site can I give my employees?
Summary of Roles There are several WordPress roles you can give them beginning with the lowest The Subscriber Basically all they a can do is edit their site profile The Contributor Here they can ‘contribute’ to the site by adding and editing their own WordPress posts, but the finally say on whether they appear is […]