• 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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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

    Thread Starter Forestone

    (@forestone)

    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

    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?

    Thread Starter Forestone

    (@forestone)

    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.

    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

    Thread Starter Forestone

    (@forestone)

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

    Thread Starter Forestone

    (@forestone)

    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

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘One page won't load’ is closed to new replies.