Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)
  • Thread Starter Toby

    (@toby-barnes)

    @pcosta88 Sorry for my delay, had a malware issue and had to clean my sites. When I first tried this the SEO Title tabs didn’t seem to be editable, no idea why. Anyway I have since got this working. Thanks for your help.

    @amboutwe Thank you for your patience.

    Thread Starter Toby

    (@toby-barnes)

    Hi @amboutwe

    In this Homepage SEO section I notice that you can’t freely type into the site title box, but have to select something that has already been created elsewhere, like ‘Site title’ ‘Page’ ‘Separator’ ‘Tagline’:
    2019-02-02_1358

    As the home page isn’t a WP Page on this theme, I assume the ‘Page’ will be blank.

    Thanks for your guidance.

    Thread Starter Toby

    (@toby-barnes)

    That’s ok. I’ve managed to get it working using Genesis Simple Hooks, adding it inside the loop. Though it appears on every page now, and I’d prefer to get it only appearing on Posts. I will investigate further…

    Thanks for your fast reply anyway ??

    Thread Starter Toby

    (@toby-barnes)

    Displaying properly now. Many thanks ??

    Thread Starter Toby

    (@toby-barnes)

    Thanks for replying. I tried adding your code into the functions.php file but unfortunately it caused the page to fail “Fatal error …”

    Solution:
    I have just tried putting this whole line straight before The Loop and it now seems to be working:
    <?php query_posts($query_string.'&orderby=title&order=ASC'); ?>

    I have found that putting this before The Loop, displays the list by Date, “newest” at the top:
    <?php query_posts($query_string.'&orderby=date'); ?>

    And to order the list by Date, “oldest” at the top, use this instead:
    <?php query_posts($query_string.'&orderby=date&order=ASC'); ?>

    – – – – – – – – – – – – – – – – – – – – – – – – – – –

    For those who are new to this, I have put the above examples (trying one example at a time, not multiple lines) before The Loop, as shown here:

    <?php // The Loop START
    
    while ( have_posts() ) : the_post(); ?>
    <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
    <?php endwhile; 
    
    else: ?>
    <p>Sorry, no posts matched your criteria.</p>
    
    <?php endif; // The Loop END ?>

    The <h4> tags style the text (of the auto-generated list of Page/Post titles) to display as a H4 header. In my case I have used CSS (not shown here) to set the H4 to be the same size as the regular <p> body text, only bolder.

    Thread Starter Toby

    (@toby-barnes)

    I have since fixed my problem. In my case, the theme I was using just didn’t work properly. It came with WooCommerce but’s its styling just messed up the functionality of the ecommerce pages.

    First, try switching to another theme to test the button.

    What theme are you using?

    Thread Starter Toby

    (@toby-barnes)

    I think these images (& image URLs) must have been in the original theme. The original designer must have removed the images when customising the theme, and just left the code as it was. I think I must have noticed these errors before, but didn’t think they’d adversely effect the site (other than the images not displaying of course).

    Rather than editing code files, I’ve created the .png images and corresponding folders using spacer.png files (1x1px transparent) and renamed them. This seems to have cleared the red alerts from the console.

    I also noticed that I also have a couple of yellow alerts in the console, like this one:

    Mixed Content: The page at 'https://hyli.co.uk/checkout/' was loaded over HTTPS, but requested an insecure image 'https://hyli.co.uk/wp-content/uploads/2015/03/logo-header-dark.png'. This content should also be served over HTTPS.

    I fixed these by removing the domain from the image URLs in the theme’s ‘add your own CSS box’ and a ‘image URL’ setting within the theme – removing the HTTP(without an S).

    The shop now works fine.
    The green SSL padlock symbol displays, and I’ve placed my first order.

    Many thanks again for your assistance. ??
    PS: Unfortunately, I found the theme’s customer support to be very slow and with poor communications.

    Thread Starter Toby

    (@toby-barnes)

    Hi Lorro,
    Thanks so much ?? … I looked inside:
    /wp-content/plugins/woocommerce/includes/class-wc-countries.php
    and I could see a problem. Two files with the same name, one from one site (doesn’t work) and one from another site using the same theme (does work), had slightly different contents with “email” and “phone”.

    However, this change didn’t change the Billing fields of the /checkout/ page until I made another change. There was also code missing from here:
    /wp-content/themes/boson/includes/woocommerce-init.php
    When I added it, it displayed correctly on the /checkout/ page.

    Unfortunately, despite these two missing fields becoming visible, the situation has reverted back to an older problem, that I thought I’d fixed by turning off a couple of plugins:
    The page didn’t let me proceed – it states that I didn’t enter any of my personal contact info… even though I did.

    Here is the URL of the main site that doesn’t work:
    https://hyli.co.uk/shop/
    I suggest you choose the ‘test’ product, it’s price is set to £0.01
    If you get through the /checkout/ page you’ll be prompted to complete the sale using PayPal. If the see the PayPal screen, you’ve made it through.

    Thread Starter Toby

    (@toby-barnes)

    Thanks, I see that to update to 4.3.1, I only need to turn off plugins and replace some WP folder using FTP.

    Other than updating WordPress, do you think that there might be another way of getting the Checkout page to work properly?

    Thread Starter Toby

    (@toby-barnes)

    Thanks for replying.
    I didn’t design the site originally and inherited the task of working on it.

    I can’t change the theme on the main site because it’s in use, but I did copy the site to a hidden subdomain to test it, and it seemed to work fine with the Boson theme (no problem on the Checkout page).

    The only difference I can see between the two sites, is the original is running WP 4.1.1 and the copy (that works) is running 4.3.1, because this was updated a while ago.

    I would happily try upgrading WordPress to a more recent version.
    I know that 4.3.1 works because the copied site looks fine on my subdomain.
    However, the original site now only seems to be able to prompt me to upgrade to 4.4

    Q: Is it possible to update WP to a version that isn’t the very latest version, like 4.3.1?
    … just want to avoid clashes with plugins etc.

    Thread Starter Toby

    (@toby-barnes)

    Apologies. Looks like I posted this in the wrong place. I have now posted it in the regular ‘WooCommerce’ support area:
    https://www.ads-software.com/support/topic/checkout-page-i-enter-billing-info-errors-stating-that-i-didnt-enter-it-1

    Please delete this thread!
    Thanks

    Thread Starter Toby

    (@toby-barnes)

    Ok, I think I will put something into functions.php
    Thanks again

    Thread Starter Toby

    (@toby-barnes)

    Thanks Michael,
    Would your suggestion look something like this?
    <?php add_action( 'pre_get_posts', 'your_function_name' ); ?>

    And could you give me a suggestion of where could I add it pls?

    Thread Starter Toby

    (@toby-barnes)

    Yes, the standard (out-of-box) Pages could not be assigned to out-of-box Categories, which I understand to be the norm in WordPress, until I installed a plugin “Add categories to pages” to make this possible.

    However, while this plugin was active, CPTs would not show up in out-of-box Category searches, even though the CPTs had been assigned to various different out-of-box Categories. So, I assumed that the plugin was clashing with the CPT plugin.

    I have now added the following code to my functions.php file, to assign out-of-box Pages to out-of-box Categories:

    function myplugin_settings() {
    // Add tag metabox to page
    register_taxonomy_for_object_type('post_tag', 'page');
    // Add category metabox to page
    register_taxonomy_for_object_type('category', 'page');
    }
     // Add to the admin_init hook of your theme functions.php file
    add_action( 'init', 'myplugin_settings' );

    It seems to work without clashing with the CPT plugin.

    Thread Starter Toby

    (@toby-barnes)

    Hi Johan,
    I have now removed the opening and closing PHP commands and it is working fine.

    Many thanks

Viewing 15 replies - 1 through 15 (of 35 total)