Showing posts with label *HowTo: Website Building. Show all posts
Showing posts with label *HowTo: Website Building. Show all posts

Wednesday, 19 February 2020

Domain Name Not Working without WWW When Pointing at Blogger - SOLVED

Blogger Domain Issues Solved

Domain Name Not Working without WWW When Pointing at Blogger


So as I have mentioned previously, I have been busy setting up everything for my alter ego Virginia Waytes and her Sexy Stories Podcast. I purchased the .com and .co.uk domains for the name as soon as I decided on the nom-de-plume, but had not yet decided exactly where to point them.

This week I finally made the choice to point them at Virginia's presence on Blogger because everything else is linked from there and I can host everything there as well so its all in one place. IMHO it also looks nicest on mobile.

Anyway, this was a little trickier than I expected, even when following their instructions to the letter. As you can probably guess from the title of this post, it didn't completely work.
WooRank.com is a great free service where we can check such things. It does a lot more than that, but after putting in a URL for them to check, we can scroll down to the section called "Indexing" and it will tell us if anything is wrong.

N.B I have "HTTPS availability" and "HTTPS redirect" turned on on my Blogger, because Google down ranks sites that don't have HTTPS activated.

I used these instructions to point my domain at Blogger: Google's Domain Instructions

What is boils down to is that after putting in our domain name on Blogger, we will see this:

Image showing the layout of the instructions on Blogger for setting up the domain name.

Under the black bars on the image is information specific to our Google account and will be individual, but it will be in the same place.

We then have to go to our domain name provider and put in the following record into the CNAME section - wherever that happens to be for them:

Host NameTypeResult
A
216.239.32.21
A
216.239.32.21
A
216.239.32.21
A
216.239.32.21
Bit under black box
CNAME
Other bit under black box
www
CNAME
ghs.google.com

And we have to set up out domain forward to point to our Blogger URL (e.g. in my case virginiasparlour.blogspot.com).

However, when I did this the first time, as I said above, everything worked except the https:// without the www.

Thanks to this article: Solved GoDaddy Domain Not Working without WWW in Blogger I managed to sort it out, even though my domain is with Names.co.uk not GoDaddy.

Turns out I had to do the following:
  1. Remove the A records above and save.
  2. Put the A records back in and save (this refreshes the DNS records).
  3. Take out the domain forwarding.
  4. Put the domain forwarding back in making sure all domain version forward the same way.
And it all sorted itself out. It can take up to 48 to propagate, but it took mine less than a minute.

And that's it. For a while there I was very confused, but thank heavens someone else had the same issue and worked it out. Hence the reason I decided to share.

Tuesday, 1 December 2015

How To Display the Blogger Labels Widget on a Separate Label's Page - #TipsTuesdays 15


So I reorganised all my Blogger labels at the weekend because they were messy and not very helpful and I also looked into how to Display Blogger labels on their own page (mine is called Blog Topics), like the tags page on LJ so they were easier to see. I had a few issues, so I decided to write it up.

How To Display the Blogger Labels Widget on a Separate Label's Page

Now blog labels are very useful to find topics about which we might be interested or to track down our own posts without scrolling through the whole list. I believe we often use them straight from the posts on which they have been placed to find like posts, but Blogger also offers a widget so we can display the labels in our blog layout as well.

If we look at a screen shot of my blog I have this widget on my left side bar and I have called it Blog Topics:
click to enlarge
However, until Sunday, this list was much, much bigger and very disorganised. What I did over the weekend was give all my posts what I like to refer to as Major Topics and then Sub Topics, where the Sub Topics are much more specific and the Major Topics are more an overview. Only the Major Topics are now listed in the sidebar.

However, I did not wish to lose the functionality of all the Sub Topics in a list as well.

All the topics, Major and Sub are now listed on the Blog Topics page which I created at the same time. As you can see in the following image, which is just a subsection screen capture of that page, there are many more topics listed, but they are much more useful for finding individual posts.
click to enlarge
Wittegen Press
$0.99 | £0.99
Amazon | Other
Being a complete beginner when it comes to editing Blogger in any way except directly through the menus, I needed to do some research and it seems I am definitely not the only person who wants to do similar things. I had to edit my Blogger Template directly and I used this very helpful article to find out how to do it: Blogger-Hints-and-tips - How to Edit Your Blogger Template.

Then I used the following article to find out what-part-of and how-to edit the template so that I could make it do what I wanted it to: Blogger-Hints-and-tips - Displaying Gadgets Only on the Home Page. However, this post doesn't quite cover everything specifically and I found a few hang ups so I am going to create my own How-To post which will also list the other steps I took.

Re-Organise Your Labels:

Now your labels might be already beautifully organised, but mine weren't so the first thing I had to do was that. Doing this first will make choosing what labels go where much easier for us and means we won't have to do it twice. Bloggers labels can be a real pain and I had no idea how to change them, so I'm including that information as well.
How to Change Your Labels:
  1. Go to Posts in your Blogger back end.
  2. Choose the label you wish to edit from the drop down
    Label select drop down.
  3. Select all posts and add the new label using the "New Label" option in the Add/Remove Label Drop Down Menu as show below (if you put a * in front of a label, it will appear above normally alphabetically sorted labels).
    Add/Remove Label Drop Down Menu
  4. Use the Add/Remove Label Drop Down Menu again to choose the label you wish to remove and it will remove it from all selected posts.
DO NOT do this in the opposite direction because all the posts will disappear from the list you are looking at since they will no longer have the search label and then you will have to search them all out again by hand. Trust me, this is a pain in the bottom - I had to do it a couple of times :).

Adding the Labels Gadgets:
Wittegen Press
$3.29 | £2.19
Amazon | Other
  1. Choose Layout from the main Blogger Dashboard menu.
  2. Click "Add Gadget" in the side bar where you wish to add the main Labels gadget and pick it from the options.
  3. Go in to this Gadget and choose the Selected Labels option, choosing all your Main Topics from the list offered.
  4. Repeat the adding Gadget process and move the gadget to the position in the Main section above the Blog Posts.
  5. Go in to this Gadget and choose the selected labels option and pick just one - this will mean the gadget is not obtrusive while you are making the other changes.
  6. Edit this Gadget again and maximise the edit window and look at the URL listed at the top, it will look like this and you will need the widgetId at the end shown below in red (it will probably be something like Label2) (once you have it, just cancel the edit):
    https://www.blogger.com/rearrange?blogID=8918688759465977896&action=editWidget&sectionId=main&widgetType=null&widgetId=Label2
Add Your New Topics Page:

I'm sure most of us have done this many times, but I'm including it for completeness.
  1. Choose Pages from the main Blogger Dashboard menu.
  2. Click New Page and create your new one. You don't need to add any content to it.
Editing Your Template:

The first 3 steps of this are how to edit your static template, if you are using a Dynamic template you will need to check the article I mentioned above at this link. You can tell which you are using by looking at the Template page.
  1. Choose Template from the main Blogger Dashboard menu.
  2. Always BACKUP your template before you do anything else using the Backup/Restore button then make sure you save it somewhere safe in case you mess up and want to restore it.
    Backup/Restore button
  3. Click Edit HTML under the "Live on Blog" to open the raw template code.
  4. Use the "Jump to Widget" option to go to your Gadget using the ID you recorded when adding it. The code should look something like this:
    Click to enlarge and read
  5. Under the line that says <b:includable id="'main'> add the following line:

    <b:if cond='data:blog.url == &quot;
    http://tashasthinkings.blogspot.com/p/blog-topics.html&quot;'>
    Replacing the URL in red with the URL of the page you created as your topics page - as you can see mine is imaginatively called Blog Topics :). ALWAYS use the .com version of the URL, not the .co.uk one, because it won't work - it took me a whole day to find out why my condition was never being hit.
  6. Just before the line which says </b: includable> at the end of the widget, put in the following code:

    <b:else/>


    <style type='text/css'>
    #Label2 {display:none !important;}/*remove blank space that the gadget leaves*/
    </style>
    </b:if>
    Changing the Label2 part in red to the id of your widget.
  7. Use the Preview Template option, your new Labels Gadget just above your main posts should have disappeared.
  8. Save the Template.
I also added the new Blog Topics page to my main menu at the top and added a new HTML/text widget in just above the Major Topics widget in the side bar to point people at the more detailed topics should they want to see them like so.

And there you have it, how I rearranged my blog labels to make them more useful :). Of course you can choose different ways of arranging the labels and different criteria for the labels you have in your side bar, but, hopefully, this will help have all your blog topics in their own page should you wish to.

We can do the same with any other widget since the principle also works for any of the Blogger Gadgets, simply choose the correct widgetId and the correct page URL when editing the code.

If you have any questions, please feel free to ask in the comments and I will do my best to answer them.


Authors - win a month's stay in a castle for NaNoWriMo 2016 via Derek Murphy (book designer and author).


(occasionally you see a page not found, but wait a second and it will redirect you to the right place - I think sometimes the server is overloaded)

Thursday, 21 August 2014

The Wonders of WordPress that I Never Realised


For a very long time I thought WordPress was just a blogging platform because we used it once on a site we had running and that was all it was at the time. However, when Soph and I rebuilt our website (WittegenPress.com) we found out just how wrong we were.

WordPress is not simply a blogging platform, it's a whole content management system with wonderful plugins and everything you could possibly need to build a site quickly, easily and in just the way you want. We were using Joomla before and compared to that WordPress is a dream.

If you would like to know the details of how we rebuilt WittegenPress.com then we created a post on that site about exactly how we did it: How We Built This Site (wittegenpress.com) With WordPress.

However, I'd like to talk about some of the advantages I've found with at least one of the plugins, other than the obvious that they let us do what we wanted to do.

We used iThemes Security, which is a plugin which greatly enhances the security of your site. I would recommend it to everyone using WordPress. However, one of the features I had no idea it had when I first installed it, that I have found very useful is the 404 lockout option, and not just because it prevents people from randomly trying to find ways into our site.

What the 404 option does is lock out users who bring up too many 404 errors too quickly in succession, which might be an indication of them trying to find a security weakness to your site. It has many customisation options so you can make sure it doesn't happen when it shouldn't, for example you can make certain files like images, ignored by this functionality. However, what it also does is log all those 404s. This is incredibly useful because we migrated our site from one platform to another and have used .htaccess to reroute requests for pages that no longer exist.

I thought I had been very thorough in making sure I had all the redirects we needed, but the 404 log showed me just how wrong I was. There were whole sections I simply hadn't though about because they weren't URLs I ever used. Over the last few days I have been watching the 404 logs and then adding required URLs to the .htaccess file so that all URLs which are still current go to the right places.

It also showed me that part of the SEO plugin we were using wasn't working and allowed me to fix it.