One page won't load (9 posts)

  1. Forestone
    Posted 2 years ago #

    So for school we're making a webshop that uses wordpress. We build a childtheme and change some things. everything was going fine, but the page to the webshop won't work.

    The link to the website is here: http://www.nicoledumasy.nl/Opladers/

    The content is in dutch. Winkel (webshop) is the only link in the menu that does not work while all the others still do.

    The last thing I added was a php function to load google fonts on the website.

  2. Waqas
    Posted 2 years ago #

    Can you post the exact snippet of code you added? I do not think you need to use php to include a Google font.

    Also if possible check the server error log

  3. Forestone
    Posted 2 years ago #

    This was the code I used:

    <?php //Opening PHP tag

    function load_fonts() {
    wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=Overlock|Carme|Karla|PT+Sans');
    wp_enqueue_style( 'googleFonts');

    add_action('wp_print_styles', 'load_fonts');


    Were can you check the error log? 0.0

  4. Waqas
    Posted 2 years ago #

    If it is cPanel hosting then generally the Apache log is available at the root of the site (public_html usually - but in your case maybe at the "Opladers" directory).

    The code seems ok - but why not just import the fonts in your CSS?

  5. Forestone
    Posted 2 years ago #

    well normally you add the link with the fonts to your html file, but since i'm working with a child theme, I had no idea how to add it. So I looked up a way I could add it to the childtheme.

  6. Waqas
    Posted 2 years ago #

    Looked in more detail - I have a feeling that it has nothing to do with the fonts thing. Commenting/removing that bit of code should probably still cause an error on the http://www.nicoledumasy.nl/Opladers/?page_id=4 page. So I think you need to get that error log to see what is happening. Could be your shopping plugin that is causing trouble

  7. Forestone
    Posted 2 years ago #

    Well the shopping plugin i'm using is woocommerce. always thought it worked alright

  8. Forestone
    Posted 2 years ago #

    I got this from the console log

    The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

    I have no idea how to change it

  9. AudreyC78
    Posted 1 year ago #

    Hello Forestone,

    I am encountering exactly he same issue when I want to add fields to the Product Form, and I would like o know if you found the solution and what it is.

    Many thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic