olivier.moreau

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • in reply to: Remove date and time on comments field #70293

    olivier.moreau
    Participant
    Post count: 48

    To find by yourself the way to tweak with CSS, use Firefox with the plugin “Web developer”. Choose “Inspector” in the menu and move the pointer to the zone you want to change. Then you type in new value and see immediately the result ! You will also see the line number in the style.css file to do the permanent change. Use a good editor like jEdit and you quickly find back the line to modify. Of course it’s not going to help as much if you need to add new code but at least you know where to go.

    in reply to: New Agency Pro is Incredible #70291

    olivier.moreau
    Participant
    Post count: 48

    One thing is sure, I’m not going to upgrade some existing sites from Agency to Agency-pro because it’s too much changes in the design. That means my old site are not fully HTML5 because I’m not going to spend hours changing CSS tags. The Executive Pro theme seems more similar to the old Agency and it’s in HTML5… When I think one of the reason I choose Genesis was the automatic upgrade !!!

    in reply to: Plugin or coding for Custom Posts ? #70279

    olivier.moreau
    Participant
    Post count: 48

    I’ve just tried Bill Erickson’s Custom Meta Boxes (http://www.billerickson.net/wordpress-metaboxes/). It’s OK for doing basic jobs although the display of fields is not very slick. Also it’s lacking access control and validation of input. CMB doesn’t help for displaying the custom fields.

    The specs of Pippin’s ECT are interesting and I like a lot “Export code for custom post types for use on sites without the plugin”. ECT seems a bit basic for displaying the custom fields with shortcodes. It implies still lot’s of PHP/CSS coding :-(

    The features of MasterPress look impressive, the developer’s edition price also !

    in reply to: Plugin or coding for Custom Posts ? #70096

    olivier.moreau
    Participant
    Post count: 48

    But can you get a decent formatting of the meta boxes ? I just get every custom field taking a full line under the post content or in the sidebar…

    in reply to: Plugin or coding for Custom Posts ? #70094

    olivier.moreau
    Participant
    Post count: 48

    Hi Brad,

    Coding a CPT with Genesis is indeed relatively easy but it gets more difficult when you add custom fields. Of course the custom fields are buildin any posts but the interface is not appropriate for users. We need to create a custom meta box and I indeed used ACF to make it easy. But ACF is still very minimal for formatting the custom fields and the input screen is not looking good. And then after that we need to present all that info in different views sorted by the custom fields. I found the code mixing PHP and CSS very tedious.

    So I was wondering if it would not be easier to get a good plugin to do all the job and I’m wondering which one is best. Toolset from OnTheGo Systems seems the most complete and I already use their other product WPML. I think I’ll give a try to compare coding versus plugin.

    in reply to: Site Returns Blank Page #69979

    olivier.moreau
    Participant
    Post count: 48

    Well if it’s happening with 2 themes and there are no plugins, maybe your wp-config.php is bad.

    in reply to: Background colour on single posts #69977

    olivier.moreau
    Participant
    Post count: 48

    It’s not clean or recommended but you could simply put your CSS right into the content of the post (inline CSS).
    In the text editor put :
    <div style=”background-color:blue;”> your text </div>

    in reply to: Site Returns Blank Page #69970

    olivier.moreau
    Participant
    Post count: 48

    Did you modified your functions.php ? Forget a ; at the end of a line and you’ll get that empty page…

    in reply to: sandbox responsive menu – or ANY nice responsive menu #69951

    olivier.moreau
    Participant
    Post count: 48

    I put a responsive menu in the Agency theme using this technique and minor modifications :

    http://blackhillswebworks.com/2013/08/16/how-to-add-a-mobile-responsive-menu-to-your-genesis-wordpress-website/

    You can see the result at http://groupe-css.com/home/

    The interesting part about that technique is that the menu is automatically visible after scrolling down the home page on a smartphone. It’s als fairly easy to customize.

    in reply to: What is the best way to create a custom blog template ? #63737

    olivier.moreau
    Participant
    Post count: 48

    Latest version of the custom blog template…
    Compare http://omoro.fr/zdoc/test-blog-custom/
    with the standard layout : http://omoro.fr/category/expositions/

    <?php
    //* Template Name: Blog-custom
    //* Display only posts with Category ID=135
    
    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'customblog_do_loop');
    
    function customblog_do_loop() {
        $args = array ( 'cat' => 135, 'orderby' => 'date' );
        genesis_custom_loop( $args );
    }
    
    remove_action( 'genesis_before_post_content', 'genesis_post_meta' );
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    add_action( 'genesis_before_post_content', 'customblog_meta' );
    function customblog_meta() {
    	global $customblog_message;
    	?> <p class="customblog_post-meta" ><?php
    	echo genesis_get_custom_field('customblog_message');
    }
    
    remove_action( 'genesis_post_content', 'genesis_do_post_content' );
    add_action( 'genesis_post_content', 'customblog_content' );
    function customblog_content() {
    		$img = genesis_get_image( array(
    			'format'  => 'html',
    			'size'    => genesis_get_option( 'image_size' ),
    			'context' => 'archive',
    			'attr'    => genesis_parse_attr( 'entry-image' ),
    		));
    		printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), $img );
    	}
    
    genesis();
    
    in reply to: What is the best way to create a custom blog template ? #63644

    olivier.moreau
    Participant
    Post count: 48

    Actually the above code is working fine but the customblog_message must be in the post and not in the page made with the customblog template. That wasn’t what I planned but it can also be useful…
    You can check the result at http://omoro.fr/zdoc/test-blog-custom/

    in reply to: What is the best way to create a custom blog template ? #63642

    olivier.moreau
    Participant
    Post count: 48

    Hi Brad,
    You read my mind ! I was working on getting a custom field from my custom blog template to select the category (so I don’t have to create a template doing only cat=135).

    To start simpler I was trying to replace the post metadata with a custom message stored in a field. But I just cannot get the field ‘customblog_message’ as a proper input for my second function. I tried with genesis_get_custom_field() but it’s not OK. Any idea what’s wrong ?

    <?php
    //* Template Name: Blog-custom
    //* Display only posts with Category ID=135
    
    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'customblog_do_loop');
    
    function customblog_do_loop() {
        $args = array ( 'cat' => 135, 'orderby' => 'date' );
        genesis_custom_loop( $args );
    }
    
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    add_action( 'genesis_after_post_content', 'customblog_after_post' );
    function customblog_after_post() {
    	global $customblog_message;
    	?> <p class="customblog_post-meta" ><?php
    	echo 'TEST';  
    	echo genesis_get_custom_field('customblog_message');
    }
    
    genesis();
    
    in reply to: What is the best way to create a custom blog template ? #63562

    olivier.moreau
    Participant
    Post count: 48

    Well I’m a bit stud born so I also find the way to create a custom blog template where the only change is the selection of posts. This is the code :`
    <?php
    //* Template Name: Blog-custom
    //* Display only posts with Category ID=135

    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'customblog_do_loop');
    function customblog_do_loop() {
    $args = array ( 'cat' => 135, 'order' => 'ASC' );
    genesis_custom_loop( $args );
    }
    genesis();
    `

    I found it after reading this excellent tutorial

    http://designsbynickthegeek.com/tutorials/genesis-explained-framework-actions

    It’s much easier with custom field in the standard blog template but the code is more flexible.
    For instance you can add :

    remove_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );

    in reply to: What is the best way to create a custom blog template ? #63409

    olivier.moreau
    Participant
    Post count: 48

    I found the EASY way without ANY coding at all !

    http://www.basicwp.com/filter-posts-by-category-tag-genesis/#

    You simply create a page with the blog template and you add a custom field

    name : query_args
    value : cat=135

    You can use all kind of values. Check :

    http://codex.wordpress.org/User:JamesVL/query_posts

    in reply to: Blog Category Split-Off? #63408

    olivier.moreau
    Participant
    Post count: 48

    I found the EASY way without ANY coding at all !

    http://www.basicwp.com/filter-posts-by-category-tag-genesis/#

    You simply create a page with the blog template and you add a custom field

    name : query_args
    value : category_name=Vignette

    You can use all kind of values. Check :

    http://codex.wordpress.org/User:JamesVL/query_posts

Viewing 15 posts - 1 through 15 (of 30 total)