Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter zs33

    (@zs33)

    thanks for the reply!
    ok the width is ok now.
    but the mobile still isnt. when i want to open a post from the homepage and click on the photo it takes me to the “przepisy” page instead of the post. why could this be?
    maybe this is relevant: i installed regenerate-thumbnails, but didnt seem to do the thing it was supposed to and i uninstalled it.

    Thread Starter zs33

    (@zs33)

    with and without ?> makes no difference

    Thread Starter zs33

    (@zs33)

    so i did it again and this time no error, but nothing is happening.

    this is all i have in the functions.php and copied it from here.

    other than that i have a style.css with this inside:

    /* Theme Name:   virtue-Child
     Description:  virtue child theme
     Author:       ZS
     Template:     virtue
     Version:      1.0.0
    */
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
    );
    }

    Thread Starter zs33

    (@zs33)

    thanks for the reply!
    i have just created a functions.php file:

    <?php
    remove_action('after_setup_theme', 'kadence_setup');
    function kadence_setup_custom() {
      register_nav_menus(array(
        'primary_navigation'    => __('Primary Navigation', 'virtue'),
        'secondary_navigation'  => __('Secondary Navigation', 'virtue'),
        'mobile_navigation'     => __('Mobile Navigation', 'virtue'),
        'topbar_navigation'     => __('Topbar Navigation', 'virtue'),
        'footer_navigation'     => __('Footer Navigation', 'virtue'),
      ));
    
      add_theme_support('post-thumbnails');
      add_image_size( 'widget-thumb', 80, 80, true );
      add_post_type_support( 'attachment', 'page-attributes' );
      add_theme_support( 'automatic-feed-links' );
      add_editor_style('/assets/css/editor-style.css');
    }
    add_action('after_setup_theme', 'kadence_setup_custom');
    ?>

    and i get this error:
    Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in functions.php on line 6

    i dont really know much about functions.php. nothing to be exact ?? so what am i doing wrong?

    Thread Starter zs33

    (@zs33)

    i mean the 80x50px image just for clarity

Viewing 5 replies - 16 through 20 (of 20 total)