Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter redizdead1

    (@redizdead1)

    Ok so I made the change but I still have a problem:
    I use a child theme, that works great usually but not in this case.
    Maybe my functions.php file in my child theme doesn’t contain the right commands ? I’m a noob I’m not sure…

    Here is what I did: I have a folder oceanic-child, I created oceanic-child>templates>css>oceanic-header-standard.css with the right modifications .

    It doesn’t work. However I’m sure my child theme’s css is properly used on my site.

    Here is the content of my functions.php :

    <?php
    function wpm_enqueue_styles(){
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'wpm_enqueue_styles' );

    Thak you for your help !

    Thread Starter redizdead1

    (@redizdead1)

    It worked perfectly, thank you very much Bojan ?? !
    Have a great day too

    Thread Starter redizdead1

    (@redizdead1)

    Thank you very much for your help !!!

    Thread Starter redizdead1

    (@redizdead1)

    So I realize style.css is not the right file. I’m learning, and if someone could help it would be great. I would like to do this without any plugin.

    Thank you !

    Thread Starter redizdead1

    (@redizdead1)

    Hi there,

    I don’t see a div with id=”content” on my page.php file.
    I see this
    `<div id=”primary” class=”content-area”>

    /*so that would be here ? */
    <main id=”main” class=”site-main” role=”main”>

    <?php get_template_part( ‘/templates/titlebar’ ); ?>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, ‘page’ ); ?>

    <?php
    // If comments are open or we have at least one comment, load up the comment template
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;
    ?>

    <?php endwhile; // end of the loop. ?>

    </main><!– #main –>
    </div><!– #primary –>`

    Thread Starter redizdead1

    (@redizdead1)

    Hi Bojan,

    Thank you for your answer. I’m not advanced enough in pHp to do this right now, but this seems like a good way of learning more, so I’ll go for it.
    Cheers

    Thread Starter redizdead1

    (@redizdead1)

    it’s depannageordinateur.fr sorry .

    I managed to change it through the “styling” menu in the theme customisation, but I would like to know how to do it in the style.css file.

    Thank you

    Thread Starter redizdead1

    (@redizdead1)

    it doesn’t work well…
    what about the margin ? how would you apply a margin-right to one of the fields?

    PS: I applied your code you can have a look

    EDIT: I changed the “max width” to 1200px and it seems to work… Was I right ?

    Thread Starter redizdead1

    (@redizdead1)

    Hi Davmerit,

    Thank you for your great answer, this is the type that really helps learning ! For a noob like me it’s very nice.
    So I checked, and I have some questions left cause I want to be sure to understand well.

    I went and check the css of my theme and it seems it doesn’t set particular width for these fields.

    The thing is my theme is responsive. I succeeded in changing a field to a fixed width, you can check the link again, the email field is now 100px instead of 293px (on my desktop)

    But that technique doesn’t work for responsive themes, does it ?

    Shouldn’t I try with margins instead ? If so, would that be in the CSS file ?
    It seems those fields just lack a higher margin on he right…

    Thanks again

    Thread Starter redizdead1

    (@redizdead1)

    So I resolved the problem by deleting the plugins that are mentioned above. They were installed with the theme accesspresslite, and it seems the installation didn’t go properly. by deleting them I solved the problem, thank you for your help ??

    Thread Starter redizdead1

    (@redizdead1)

    Sorry, I went to the php_error.log and here last errors messages :

    [08-Oct-2015 08:14:47 UTC] PHP Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php on line 62
    [08-Oct-2015 08:14:48 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-admin/post.php on line 242
    [08-Oct-2015 08:14:48 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-includes/pluggable.php on line 1207
    [08-Oct-2015 08:14:53 UTC] PHP Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php on line 62
    [08-Oct-2015 08:14:53 UTC] PHP Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php on line 62

    Thread Starter redizdead1

    (@redizdead1)

    Thanks again for your help.
    the php.ini files are in /mamp/php/php5.4.42/conf/
    there are 6 versions of php, so 6 folders, each with a php.ini, but it seems in all of them there is “error_reporting = E_ALL”.

    I tried reinstalling wordpress, updating plugins but it doesn’t work…

    I went to check the php_error.log, I get many errors like these ones

    [08-Oct-2015 08:14:47 UTC] PHP Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php on line 62
    [08-Oct-2015 08:14:47 UTC] PHP Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php on line 62
    [08-Oct-2015 08:14:48 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-admin/post.php on line 242
    [08-Oct-2015 08:14:48 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-includes/pluggable.php on line 1207
    [08-Oct-2015 08:14:53 UTC] PHP Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php on line 62
    [08-Oct-2015 08:14:53 UTC] PHP Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php:1) in /Users/Fitnext/sites/informatique/wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php on line 62

    Thread Starter redizdead1

    (@redizdead1)

    thank you ! the thing is I’m learning, I’m a noob. And I have 10 or 20 php.ini files on my mac. I don’t know where I should look for this file…

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