• Resolved archizoom

    (@archizoom)


    justwrite is rally wonderful

    i can edit php files
    i can edit widgets, menue, theme otions…
    but i cant edit style.css ?

    it makes me crazy.

    I have copied the original style.css in justwrite-child
    and supplemented

    Theme Name: justwrite-child
    Theme URI: http//www.archizoom.de
    Author: archizoom
    Author URI: http//www.archizoom.de
    Description: JustWrite is a theme with clean lines and an open-spaced design, that can be used to show off your latest articles.
    Version: 1.0.0
    License: GNU General Public License v2.0
    License URI: http://www.gnu.org/licenses/gpl-2.0.html

    Template: justwrite

    i see the style.css (child) in the wordpress editor.
    i can edit – but no change is assumed –

    I created a functions.php in justwrite-child

    <?php
    add_action(‘wp_head’,’load_parent_style’,0);
    function load_parent_style() {
    wp_register_style(‘parent-theme’,get_bloginfo(‘template_directory’).’/style.css’);
    wp_enqueue_style(‘parent-theme’);
    }
    ?>

    what ist wrang ?

    Viewing 15 replies - 1 through 15 (of 25 total)
    • Did you activate the child theme in your dashboard, or is the parent theme still active?

      Thread Starter archizoom

      (@archizoom)

      the child-theme.
      I can see the php file-changes

      the parent theme’s style.css loads twice;

      change your lines for example to:

      wp_register_style('child-theme',get_bloginfo('stylesheet_directory').'/style.css');

      http://codex.wordpress.org/Function_Reference/get_bloginfo

      or possibly use some code like this in functions.php of the child theme:

      function justwritechild_setup() {
      add_action( 'wp_enqueue_scripts', 'justwritechild_css_files', 99 );
      }
      
      add_action( 'after_setup_theme', 'justwritechild_setup' );
      
      function justwritechild_css_files() {
      		wp_enqueue_style( 'justwritechild_style', get_stylesheet_directory_uri() . '/style.css' );
      }
      Thread Starter archizoom

      (@archizoom)

      change in style.css ?

      I created a functions.php in justwrite-child

      in here…

      Thread Starter archizoom

      (@archizoom)

      danke, thank you – thank you – thank you, merci, gracias

      it works !!!!!!!!!

      i have entered in functions.php

      <?php
      add_action(‘wp_head’,’load_parent_style’,0);
      function load_parent_style() {
      wp_register_style(‘parent-theme’,get_bloginfo(‘template_directory’).’/style.css’);
      wp_enqueue_style(‘parent-theme’);
      }

      function justwritechild_setup() {
      add_action( ‘wp_enqueue_scripts’, ‘justwritechild_css_files’, 99 );
      }

      add_action( ‘after_setup_theme’, ‘justwritechild_setup’ );

      function justwritechild_css_files() {
      wp_enqueue_style( ‘justwritechild_style’, get_stylesheet_directory_uri() . ‘/style.css’ );
      }

      but a little problem whith smartphone view

      in the smartphone view is the header row on the left and the text-book letter for letter with each other

      where can i find this error ?

      Theme Author acosmin

      (@acosmin)

      for any css error in mobile view you should take a look in ../assets/css/media-queries.css

      Thread Starter archizoom

      (@archizoom)

      thank you for the quick response.
      and thank you for the realey nice theme.

      the media-queries.css is in the original theme.
      and i have not worked on it.

      what should i do ?

      Thread Starter archizoom

      (@archizoom)

      child theme – justwrite makes me crazy – child theme

      the error persists even after deleting and reinstalling all themes

      – i´ve deleted everything. theme and child-theme.
      – i´ve reinstall the mother-theme
      – i´ve created a new child-theme
      – everything back to the beginning

      and what happens?

      – the mother-theme work, even in the smartphone
      – the child-theme works on pc
      but the view in the smartphone: the same error as before uninstall
      – smartphonecache was empty
      – smartphone is reboot

      Thread Starter archizoom

      (@archizoom)

      error – at least – isolated

      if I remove the text from the functions.php

      function justwritechild_setup() {
      add_action( ‘wp_enqueue_scripts’, ‘justwritechild_css_files’, 99 );
      }

      add_action( ‘after_setup_theme’, ‘justwritechild_setup’ );

      function justwritechild_css_files() {
      wp_enqueue_style( ‘justwritechild_style’,
      get_stylesheet_directory_uri() . ‘/style.css’ );
      }

      is in the child-theme again everything ok

      but then I can no longer edit the child css

      where is the solution ?

      the style.css in the child theme needs to be empty to start with, and should only contain any styles which are intended to overwrite styles from the parent theme.

      the style.css in my ‘experimental’ child theme of ‘justwrite’ looks like this:

      /*
       Theme Name:   JustWrite Child
       Template:     justwrite
      */
      
      /* =Theme customization starts here
      -------------------------------------------------------------- */
      
      .post-content h2.title { font-style: italic; }

      the last line is just an example to change the post titles to italic.

      the code of functions.php in the child theme is (as I posted already earlier):

      <?php  function justwritechild_setup() {
      add_action( 'wp_enqueue_scripts', 'justwritechild_css_files', 99 );
      }
      
      add_action( 'after_setup_theme', 'justwritechild_setup' );
      
      function justwritechild_css_files() {
      		wp_enqueue_style( 'justwritechild_style', get_stylesheet_directory_uri() . '/style.css' );
      }
      ?>
      Thread Starter archizoom

      (@archizoom)

      thanks for help!

      when I enter the registrations in the style.css and functions.php
      I can edit the style.css – wonderful!

      but

      the smartphone view is shot to pieces.

      is with them the smartphone view correct?
      what can it be?

      Thread Starter archizoom

      (@archizoom)

      justwrite does not work on i-pad and smartphone

      just write the theme seems to have a weakness.

      I create a child-theme and the i-pod and smartphone view is destroyed.
      if so, this theme is useless.

      where is the solution?

      Hey everyone… problem solved! See my last post here. Cheers!

    Viewing 15 replies - 1 through 15 (of 25 total)
    • The topic ‘child theme – justwrite makes me crazy – child theme’ is closed to new replies.