Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello @anlino,

    First of all, thanks for your theme I love it! ??

    I’m quite in same case but after reading everything I can’t find a solution.
    Everything was working fine but since a theme update during decembre 2017 my child css are not working anymore.

    Here’s my website:
    https://www.location-golfe-de-lava.com/

    Here’s is my style.css (in “/themes/hemingway-child/”):

    /*
    Theme Name:     hemingway-child
    Template:       hemingway
    Text Domain:    hemingway-child
    */
    @import url("../hemingway/style.css");
    
    .post-title, .post-title a {
        color: red;
    }

    This is not working, only when I modify CSS in the parent theme.

    Can you help me ?

    Fred

    • This reply was modified 6 years, 9 months ago by Fwe34000.

    Thx Superbanana! It works! It’s maybe not the best way but it’s good like that ??

    I have an other problem: on my iPad, the picture field is not in the good alignement:

    Exemple

    I don’t really know how to do to put it in the right place!

    Any idea?

    Thread Starter Fwe34000

    (@fwe34000)

    Hello Jose!

    I tried your solution and it worked well!

    But I tried to use the “POT File” solution:

    -I downloaded in “Parent theme>languages>vantage.pot”
    -Opened it in POEDIT, saved it in PO and MO files, did the translation in my PO file, saved him and uploaded both PO and MO files in my “Child Theme>languages>” folder: it didn’t work!

    BUT I uploaded them in my “Parent theme>languages>” folder and it worked!

    Is there a solution to open them from the Child folder? When my them will be uploaded will y transation be erase?

    Thx!

    Fred

    Thread Starter Fwe34000

    (@fwe34000)

    Hello Jose,

    So if I undo the solution I proposed in my child functions.php file and put yours it should work?

    Moreover, if I only copy the .pot file in my child folder and change “Posted on” by “Posté le” it should work directly without the modifications in the function file?

    Thanks for your answer!

    Thread Starter Fwe34000

    (@fwe34000)

    The solution, in the child folder, function.php file:

    <?php add_action('after_setup_theme','remove_fonction_parent');
    function remove_fonction_parent() {
       remove_action('hook','vantage_posted_on');
       add_action('hook','vantage_posted_on');
    }
    
    function vantage_posted_on() {
    	$posted_on_parts = array(
    		'on' => __('Posté le <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', 'vantage'),
    		'by' => __( '<span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'vantage' ),
    	);
    	$posted_on_parts = apply_filters('vantage_post_on_parts', $posted_on_parts);
    
    	$posted_on = sprintf( implode(' ', $posted_on_parts),
    		esc_url( get_permalink() ),
    		esc_attr( get_the_time() ),
    		esc_attr( get_the_date( 'c' ) ),
    		apply_filters('vantage_post_on_date', esc_html( get_the_date() )),
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'vantage' ), get_the_author() ) ),
    		get_the_author()
    	);
    	echo apply_filters('vantage_posted_on', $posted_on);
    }
    
    ?>
    Thread Starter Fwe34000

    (@fwe34000)

    As I told, I change:

    function vantage_posted_on() {
    	$posted_on_parts = array(
    		'on' => __('<strong>Posted on</strong> <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', 'vantage'),
    		'by' => __( '<span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'vantage' ),
    	);

    by

    function vantage_posted_on() {
    	$posted_on_parts = array(
    		'on' => __('<strong>Posté le</strong> <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', 'vantage'),
    		'by' => __( '<span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'vantage' ),
    	);

    Thx Superbanana! It works! It’s maybe not the best way but it’s good like that ??

    I have an other problem: on my iPad, the picture field is not in the good alignement:

    Exemple

    I don’t really know how to do to put it in the right place!

    Any idea?

    Hello!

    Thank you for your advice, I did it and it works well but still I have a little problem:

    Go on my website: https://vitamine-design.fr/

    OnMouseOver on the “Accueil” button, I have a little space between the blue box and the end of the menu.

    (I hope you’ll see what I mean!)

    I tried to change many things in the style.css but didn’t find the answer…

    If you can help me!

    Thx!

    F.

Viewing 8 replies - 1 through 8 (of 8 total)