wordpress – Tulltech software devlopment https://tulltech.co.uk Mon, 06 Feb 2023 10:54:15 +0000 en-GB hourly 1 https://wordpress.org/?v=6.7.1 https://tulltech.co.uk/wp-content/uploads/2019/09/cropped-logo-only-300-32x32.png wordpress – Tulltech software devlopment https://tulltech.co.uk 32 32 Who even needs a website anymore? https://tulltech.co.uk/2023/01/26/do-i-need-a-website/ https://tulltech.co.uk/2023/01/26/do-i-need-a-website/#respond Thu, 26 Jan 2023 08:27:48 +0000 https://tulltech.co.uk/?p=567 Continue reading Who even needs a website anymore?]]> I remember seeing a mobile hairdresser with their facebook address displayed on their car and I realised that people are going to do this instead of a website or even a phone number. It makes sense. It’s cheaper. It’s easier. It’s memorable. And so it came to pass. There are countless small businesses now whose only shop window to the world is via Facebook.

a van with a facebook logo on the back
a van with a facebook logo on the back

Facebook allows businesses to create a presence on their site, this can be used to share information about the company, its products and services. It enables the company to interact with customers and other users. Facebook company pages can be customized with features such as photos, videos, and a company description. Users can follow or like a company page to receive updates from that page in their news feed, and companies can also use paid advertising to promote their page and reach a wider audience.

Sounds ideal?

It is possible to use a Facebook company page in place of a website, but it is not recommended for several reasons.

First, a website typically provides a more comprehensive and centralized source of information about a business or organization, whereas a Facebook company page is just one aspect of a business’s online presence. Websites can also provide more flexibility in terms of design and functionality.

Second, a website gives you control over the look, feel and functionality of your business’s online presence, while a Facebook company page is limited to the features offered by Facebook.

Third, a website can be indexed by search engines, which allows people to find your website when they perform a search for relevant keywords. A Facebook company page is not indexed by search engines, which means that it may not appear in search results for your business or organization.

Fourth, a website can be accessed by anyone with an internet connection, while a Facebook company page can only be accessed by users who have a Facebook account and are logged in.

And finally, limiting your prescence to Facebook makes a company completely dependent on Facebook. Any change in the Facebook algorithm could impact your online presence and Facebook has been built to make Facebook money, not your company!

Overall, while a Facebook company page can be a useful tool for businesses, it is not a substitute for a website, and having a website is still important for a business to establish its online presence.

]]>
https://tulltech.co.uk/2023/01/26/do-i-need-a-website/feed/ 0
Broken WordPress: Quick Fix https://tulltech.co.uk/2022/03/24/broken-wordpress/ https://tulltech.co.uk/2022/03/24/broken-wordpress/#respond Thu, 24 Mar 2022 11:16:56 +0000 https://tulltech.co.uk/?p=513 Continue reading Broken WordPress: Quick Fix]]> You’ve updated WordPress and now your website is broken. You need to fix it. Fast.

The two most likely culprits are a broken preloaded plugin or a broken theme. Let’s look at how to fix both.

Broken Plugin

The quickest way to fix this is to go in with ftp or go to your webhosting file manager and rename the plugin directory to plugin.nw. Preloaded plugins sorted.

Broken Theme

Themes are trickier. You have to rename the active theme, then rename one of the default WordPress themes to the name of the broken active theme. For instance. Say I’m using the theme “Broken” – I rename “Broken” to “Broken.nw” I then rename “twentynineteen” to “Broken” I can now go into theme selection in my WordPress and choose a working theme. Now that everything is working I can rename “Broken” back to “twentynineteen” then “Broken.nw” to “Broken”

This happened to a client recently. They had selected a third party theme and a WordPress update broke everything. All they were getting was this critical error:

It turned out the theme that they had installed broke the latest version of WordPress. The convoluted instructions above for renaming the theme brought the site back online.

This is one of the reasons I have resorted to using the WordPress default themes and then customizing them myself. When you use a third party theme it relies on that third party to keep the theme updated. It adds a dependency over which you have no control. Personally I prefer to keep things as simple as possible.

To access your hosting file manager, you need to log into your hosting account, select cpanel, then look for file manager under the files section. I will update this post as I encounter and fix more WordPress problems.

In other news it’s great to see the Government give out the password security advice that I gave in my last blog post. Perhaps they were reading it 😂 Let’s hope everyone updates their systems to take this into account! There’s nothing more infuriating than a prescriptive password system telling you to use a capital letter. And a number. And a punctuation mark.

]]>
https://tulltech.co.uk/2022/03/24/broken-wordpress/feed/ 0
WordPress update https://tulltech.co.uk/2020/12/13/wordpress-update/ https://tulltech.co.uk/2020/12/13/wordpress-update/#respond Sun, 13 Dec 2020 09:10:00 +0000 https://tulltech.co.uk/?p=436 Continue reading WordPress update]]> There is a new point release of WordPress available along with a brand new theme. I normally run updates and test new themes on a staging site, before updating live sites, but it was a rainy Sunday so I just dropped it straight on here and this is the result!

The recent default WordPress themes have seen a trend towards minimalism, with themes that are optimized for readability. The last two themes have added extensive support for the WordPress block editor. Out of the box, they offer enough functionality to provide a good looking website with a minimum of tweaking, but have the flexibility for advanced customization. Or in the words of the developers, they offer a blank canvas.

WordPress 5.6 has been released

The first thing to do with any new theme is to create a child theme. Themes, particularly new ones, are regularly updated and if you don’t create a child theme, you run the risk that a theme update will overwrite any customizations that you might have painstakingly implemented.

The new Twenty TwentyOne theme looks good without any tweaking. It has good looking typography and it supports dark mode.

It has deleted the company logo and I see from the specifications that the logo dimensions have changed. Twenty twenty required a 300 x 300 pixel logo, whereas twenty twentyone needs a 300 x 100 pixel one. The new theme supports dark mode so it will also be important to ensure that any logo works against both a light and dark background!

It has also capitalized the company name for some reason and there’s a lot of white space at the bottom of the page. The page titles are in a rather large font but I think it might be worth sticking with. I’ll take a deep dive into it when I have more time.

UPDATE: Perfomance of the updated website was shocking. It took over a minute for the main page of the website to load! As a result, the whole website has been reinstalled and the php version updated. Load times are back to normal. If you notice any issues please get in touch.

]]>
https://tulltech.co.uk/2020/12/13/wordpress-update/feed/ 0
Blocking Spam https://tulltech.co.uk/2020/01/24/blocking-spam/ https://tulltech.co.uk/2020/01/24/blocking-spam/#respond Fri, 24 Jan 2020 11:40:26 +0000 https://tulltech.co.uk/?p=366 Continue reading Blocking Spam]]> The contact page for this website has recently been inundated with spam from webcrawling robots, so it has become necessary to implement some basic spam blocking. The website is now using Google reCaptcha technology. Apologies if this makes it harder to contact us, but the spam was spiralling out of control.

Here is a snapshot showing a small fraction of the spam that has been coming through on a daily basis:

Screenshot of spam
Spam Screenshot

It was a simple process to plug Google’s reCaptcha into the website and already it has had a transformative effect.

]]>
https://tulltech.co.uk/2020/01/24/blocking-spam/feed/ 0
Getting to grips with Gutenberg https://tulltech.co.uk/2019/08/15/getting-to-grips-with-gutenberg/ https://tulltech.co.uk/2019/08/15/getting-to-grips-with-gutenberg/#respond Thu, 15 Aug 2019 08:21:00 +0000 https://tulltech.co.uk/?p=433 Continue reading Getting to grips with Gutenberg]]> As of WordPress 5.0, Gutenberg is the new page editor. Gutenberg is designed to allow the end user to cut down on the number of plugins required and to allow the creation of modern, media heavy layouts. It is designed to be easy to use and to work across all sorts of screen sizes and devices. Although the classic editor is still available as an option. This is an example of a paragraph block.

This is a heading block

  • This is
  • an example
  • of a bulleted
  • list

This is a quote

along with a citation
10 Print "This is a code block"
20 Goto 10
This is a preformatted block

This is a pullquote

with a citation
Thisis
atable
table caption
This is a verse block
but it doesn't rhyme
Wasdale Head
Example Image

A cover image allows text overlay

Computer Code

The media and text looks useful. It’s a block with an associated image.

This is a 3 column

Each column can have a block type added


This is a group

Above is a separator and then a spacer, which can be resized. Then this is a group block

Web Development
Web Development

Which allows a set of blocks to be grouped together

Finally this is the classic WordPress block.

]]>
https://tulltech.co.uk/2019/08/15/getting-to-grips-with-gutenberg/feed/ 0
Twenty Seventeen & Twenty Nineteen Themes https://tulltech.co.uk/2019/07/17/twenty-seventeen-twenty-nineteen-themes/ https://tulltech.co.uk/2019/07/17/twenty-seventeen-twenty-nineteen-themes/#respond Wed, 17 Jul 2019 15:42:49 +0000 https://tulltech.co.uk/?p=272 Continue reading Twenty Seventeen & Twenty Nineteen Themes]]> These are three default themes in a new WordPress 5.0 installation. Twenty Nineteen is the newest and has been developed take advantage of the new features that the Gutenberg editor brings to WordPress.

Twenty Nineteen theme featured image
Twenty Nineteen theme featured image

Twenty Nineteen has a simple, yet elegant feel. There is a real emphasis on typography. This first image shows a static page with a featured image. The featured image is maximized to cover the full page and a filter (blue) is applied over the top.

Twenty Nineteen theme static page
Twenty Nineteen theme static page

Page down and this is what the rest of the page will look like.

Twenty Seventeen theme with featured image
Twenty Seventeen theme with featured image

This is a static page on the Twenty Seventeen theme with a featured image. The featured image will be full screen on the home page and then is used more as a website banner, for the rest of the site.

Twenty Nineteen theme static page
Twenty Nineteen theme static page

This is a Twenty Nineteen static page. The typography really stands out. The theme has better support for all the new features that the Gutenberg editor offers.

Twenty Seventeen theme with static page
Twenty Seventeen theme with static page

This is a similar page with the Twenty Seventeen theme. The typography is really clear, although it’s not quite as clear as the Twenty Nineteen theme. Graphically though the Twenty Seventeen theme delivers a better impact.

]]>
https://tulltech.co.uk/2019/07/17/twenty-seventeen-twenty-nineteen-themes/feed/ 0
WordPress 5.0 Back to Basics https://tulltech.co.uk/2019/05/06/wordpress-5-0-back-to-basics/ https://tulltech.co.uk/2019/05/06/wordpress-5-0-back-to-basics/#respond Mon, 06 May 2019 12:05:32 +0000 https://tulltech.co.uk/?p=244 Continue reading WordPress 5.0 Back to Basics]]> Our old website has been completely deleted and replaced with the latest version of WordPress. Historically we have relied on WordPress themes to quickly create an attractive look and feel, but each new release of WordPress brings the possibility of the site breaking. WordPress 4.0 did this for all our clients and WordPress 5.0 has brought even more changes. It is however vitally important to keep WordPress updated for site security. The vast majority of WordPress hacks happen because the softare hasn’t been kept up to date.

This site is now running the latest version of WordPress 5 and that comes with 3 builtin themes twenty-sixteen, twenty-seventeen and twenty-nineteen. These themes are maintained by WordPress so they make a solid starting point for any WordPress development. Any updates to WordPress will be reflected in these themes as they are part of the core WordPress installation. In addition to relying on the default themes, we are going to attempt to minimise plugin use, as this is another area that can weaken security and introduce problems with site updates.

The first thing to do is to create a child theme. A child theme inherits all the functionality and styling of the parent theme. Any changes you make to the theme are made in the child theme, that way the parent theme can safely be updated without overwriting your changes. To do this go into the wp-content directory and create a new folder twentyseventeen-child or twentynineteen-child and create the following files:

For the twenty-seventeen theme

style.css
 /*
 Theme Name: Twenty Seventeen Child
 Description: The custom theme Twenty Seventeen Child using the parent theme Twenty Seventeen.
 Author: Tulltech
 Author URI: https://tulltech.co.uk
 Template: twentyseventeen
 Version: 1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 */
functions.php
<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
 
    $parent_style = 'twentyseventeen-style'; 
 
    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( $parent_style ),
        wp_get_theme()->get('Version')
    );
}

For the twenty-nineteen theme

style.css
/*
 Theme Name:   Twenty Nineteen Child
 Theme URI:    http://example.com/twenty-nineteen-child/
 Description:  Twenty Nineteen Child Theme
 Author:       Tulltech
 Author URI:   http://tulltech.co.uk
 Template:     twentynineteen
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
 Text Domain:  twentynineteenchild
*/
functions.php
<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
 
    $parent_style = 'twentynineteen-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
 
    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( $parent_style ),
        wp_get_theme()->get('Version')
    );
}

You can also add a custom image to give the new child theme a picture. The file should be named screenshot.png with dimensions 1200×900, although any reasonable sized 4:3 image should look okay.

The major feature of the 5.0 release is the Gutenberg editor. Gutenberg feels like a major step forward. On our old site we used a Visual Composer from WPBakery which was very good. But whenever you introduce new factors into your site, you also introduce possible incompatibilities. With the Gutenberg editor you are using functionality that is baked into WordPress. For instance, you can switch to the code editor and copy your whole page and paste it into a new page. When you turn the visual editor back in, the page has been copied perfectly.

Gutenberg Editor
Block widget on the Gutenberg Editor

Gutenberg has a number of tools called blocks. Blocks allow you to add all kinds of content without needing specialized technical knowledge.

You can add blocks then drag them around. There are blocks that allow you to create advanced layouts, from simple columns to more complicated tables. Gutenberg gives the user a lot of power in a relatively simple interface.

I say relatively simple, but I have installed WordPress for clients and they haven’t considered the interface simple at all. Hopefully Gutenberg will change this for them, although as a programmer it’s easy to lose sight of the fact that what appears simple is quite technical for some users.

]]>
https://tulltech.co.uk/2019/05/06/wordpress-5-0-back-to-basics/feed/ 0