BA Phot

Wordpress 2 Archive

Back - New Page - Old Page - Template

This page has been edited and reorganised as New Page .

[not spellchecked  ]

[30Sep21] Time for a new page on the matter.

I have a new domain baphot2.co.uk that I intend to set up as all-Wordpress with no danger of damage to the old BAPhot.


LCN
Box A
LCN WP Setup

Take 2

[14Nov] Begin setup using the template on the Old Page.

[15Nov] Try setting up a subdomain for LPE in BAPhot2. Conversation with LCN:

Thomas 09:41
Hi 😊There's currently no way to automatically install WordPress to a subdomain anymore, unfortunately, so it'd need to be installed manually by following the steps in this guide: https://www.wpbeginner.com/how-to-install-wordpress/#installftp This covers how you can create the database you'll need for the setup: https://www.lcn.com/support/articles/how-to-create-a-mysql-database/ LCN

I've tried this before and never succeeded. The alternative is a top level menu in BAPhot2 and all the subsidiary 'sites' haning off that - not ideal, subdomains are cleaner.

Here's a pdf of the install instructions.

FileZilla
Box B
FileZilla

FTP software Filezilla 3

1. install Filezilla
2. download the latest version of WP - https://wordpress.org/download/
3. Log into the domain

Host - ftp.hosts.co.uk
Username - baphot2.co.uk
Password - the ftp pwd set up at LCN

4. Locate the WP download in the left window and the subdomain web folder on the right then drag and drop

5. Now create the MySQL database. (LCN)

a. database prefix_lpe_baphot2; username lpebaphot2; pwd. dic setup similar.
b. set up these details in the wp-config.php file - how-to-edit-wp-config-php-file-in-wordpress
c. dowload the wp-config.php file using FileZilla, edit it in Dreamweaver setting the DB_NAME, DB_USER, DB_PASSWORD, DB_HOST and DB_CHARSET.

But when I try to log in to wp-admin I get, "Your server is running PHP version 5.5.38 but WordPress 5.8.2 requires at least 5.6.20."

db db db
Box C
database setup

[16Nov] Try to fix it.

I couldn't spot a problem and turned to LCN - Thomas to the rescue again - update PHP - https://www.lcn.com/support/articles/how-to-change-php-version/. (I had tried that everywhere I could find the option. Try again.)
Answer - There's a little box at the top to select the subdomains, see fig. D3.

That seems to work. Of course, if that works on baphot2, it can also work on the original baphot and I'd save the cost of another domain - maybe baphotref too,

WP WP WP WP WP
Box D
1. database details
2. config files
3.PHP update
4-5. install screens

BAPhot

[17Nov] I made a start last night on thrying to set up subdomains in BAPhot for all the remaining courses - L2 LPE, DIC; L3 PR, CA, MP. DIC looks ok but LPE is a little flakey and might have to be deleted and done again.

WP WP WP
Box E
1. BAPhot subdomains
2. BAPhot lpe
3. BAPhot dic

[18Nov] lpe.baphot is broken with a fundamental Error Establishing a Database Connection fault. Here's the plan.

1. try to fix it using these
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/
https://websitesetup.org/error-establishing-a-database-connection/

2. Either way, create template.baphot, get it working with a basic page and menu structure and clone it to all the subdomains - LPE, DIC, PR, CA, MP, Refs etc.

3. Reorder this page with the useful bits at the top and the fixes section archived.

later - fixed it - the db_user name was wrong and the permissions needed more boxes ticking.

On to template.

1. subdomain template created.
2. wordpress copied with FileZilla (Host - ftp.hosts.co.uk; Username - baphot.co.uk; Password - the ftp pwd set up at LCN).
3. Now create the MySQL database - DB_NAME LN022859_template_baphot; DB_USER templatebaph; DB_HOST appdb2.lcn.com + DB_PASSWORD, see fig. F1.
4. update the PHP version (PHP in the LCN control panel).
5. update the wp-config.php file (transfer with FileZilla, update with Dreamweaver).

Note - it didn't work at all - I checked and couldn't find anything wrong so I reloaded Worpress, updated the config file again and all was fine. Moral - keep checking and don't panic.

setup below

Some basic pages and structure have been set up in template so now the pan is to clone it to LPE, DIC and also the third level PR, CA and MP, although the structure of those courses might well be different. Here's a link on cloning.

https://www.wpbeginner.com/wp-tutorials/how-to-clone-a-wordpress-site-in-7-easy-steps/

WP WP
Box F
1. template database
2. template config file

from the old page, 9th Dec

  1. 1. activate theme twentytwenty
  2. 2. settings / general - set title, tagline, language and timezone
  3. 3. set static site - setting / reading - static site, set home page
  4. 4. appearance / customise / colours - set background colour to white; primary colour / custom - make it redder
  5. 5. appearance / customise / additional CSS - change header font size
    1. /* Smaller Heading Font please */
      @media (min-width: 700px) {
      h1, .heading-size-1 { font-size: 3.2rem; }
      h2, .heading-size-2 { font-size: 2.2rem; }
      h3, .heading-size-3 { font-size: 1.9rem; }
      h4, .heading-size-4 { font-size: 1.6rem; }
      }
    2. 5a. and remove underlines from links -
    3. /* Place this in your template CSS file or Theme CSS Editor */
      a { text-decoration: none!important; }
    4. fix to centre the image caption text link gives additional CSS below
      figcaption { text-align: center; }
    5. 5b. [28Jul] reduce the headline space and many other goodies from Om Prakash Chowdhury
      .singular .entry-header {
      padding-top: 2rem !important;
      padding-bottom: 4rem !important;
      }
  6. 6. appearance / widgets - remove the lot
  7. 7. appearances - create the main (and only) menu
  8. 8. delete any posts
  9. 9. add and activate plugins -
    1. Flexy Breadcrumb - not yet
    2. Akismet antivirus
    3. Updraft Plus
    4. CF Page or Post Duplicator (Carlos Fazenda)
    5. Modula Gallery (or try another, it's nothing special)
    6. WPFront Scroll Top 
    7. and modify header.php for breadcrumbs ( see images below)
    8. <?php echo do_shortcode( '[flexy_breadcrumb]' ); ?>
    9. Favicon by RealFaviconGenerator
    10. Twentig for customising?
    11. I'm looking for a decent PDF viewer for the zine [4Aug] DFlip Lite is excellent and free, see here.
    12. Category Tag Pages, see 12 below, and maybe Cool Tag Cloud
  10. 10. one teeny additional problem has been noticed. The menu navigates correctly but the page navigation, e.g. the list of assignments switches to their original C&N source. That was a bit of a pain but only took an hour so.
  11. 10a. and the priorities should be set on the assignment pages so that they are ordered correctly on the menu - this should be on the save version - consider saving EyV before populating. Done 15Jul20.
  12. 11. and modify the priorities (quick edit) on the main pages to control their sequence in the header menu
  13. 12. [19Aug] I have been trying to organise a Tag Cloud. Tags are normally reserved for posts rather than pages, but the plugin Category Tag Pages allows page tags. There is a simple WP widget that makes a plain tag cloud, implemented on this page, but I'd like soemthing prettier and tried Cool Tag Cloud. I am trying to insert this on a page rather in a footer, where widgets seem to want to go.

Head

[date] text

text

text

WP WP
Box D
Figs. n
© the artists, their agents or their estates
img: text; text

Head

[date] text

text

text

WP WP
Box D
Figs. n
© the artists, their agents or their estates
img: text; text

Head

[date] text

text

text

WP WP
Box D
Figs. n
© the artists, their agents or their estates
img: text; text

Template copied from the Old Page used for BaphotRef

First, I'm running through the 9th July checklist.

appearance / widgets - remove

[20Dec] Tag cloud - add plugin Category Tag Pages
Advanced Editor Tools plugin added to enable easy highlighting of text.

Additional CSS from IP

/* Smaller Heading Font please */
@media (min-width: 700px) {
h1, .heading-size-1 { font-size: 3.2rem; }
h2, .heading-size-2 { font-size: 2.2rem; }
h3, .heading-size-3 { font-size: 1.9rem; }
h4, .heading-size-4 { font-size: 1.6rem; }
}

/* Place this in your template CSS file or Theme CSS Editor */
a { text-decoration: none!important; }

.singular .entry-header {
padding-top: 2rem !important;
padding-bottom: 4rem !important;
}


References

author, (year) Title. Location: Publisher.

author (year) title [online]. website. Available from url [Accessed nn January 2020].


author (year) Title. Location: Publisher.

author, (year) Title. Location: Publisher.

author (year) title [online]. website. Available from url [Accessed nn January 2020].

author, (year) Book Title. Location: Publisher.

author (year) Title. Journal. Vol, pages.

author (year) Title. Newspaper. Date. pages.


Page created 30-Sep-2021 | Page updated 19-Nov-2021