Forum Replies Created
-
Author
-
wilfriedMarseilleParticipant
line 149 to see the ACF Form
COPY CODE<?php /** * The Template for displaying all single posts * * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ acf_form_head(); ?> <?php get_header(); ?> <?php //Specific class for post listing */ if ( kleo_postmeta_enabled() ) { $meta_status = ' with-meta'; if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) { $meta_status .= ' inline-meta'; } add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "' . $meta_status . '"; return $cls;' ) ); } /* Related posts logic */ $related = sq_option( 'related_posts', 1 ); if ( ! is_singular('post') ) { $related = sq_option( 'related_custom_posts', 0 ); } //post setting if(get_cfield( 'related_posts') != '' ) { $related = get_cfield( 'related_posts' ); } ?> <?php get_template_part( 'page-parts/general-title-section' ); ?> <?php get_template_part( 'page-parts/general-before-wrap' );?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <div class="row"> <div class="col-md-3"><?php the_post_thumbnail('medium'); ?></div> <div class="col-md-3"> <h1 class="H1withoutTopMargin" style=" margin-top: 0px;"><?php the_field( 'acfArtistes_nomArtiste' ); ?></h1> <div class="social"> <ul class="menu simple rdo-social"> <?php if( get_field('acfArtistes_facebook') ): ?> <li><a href="<?php echo the_field('acfArtistes_facebook'); ?>"><i class="gplus"></i></a></li> <?php endif; ?> <?php if( get_field('twitter') ): ?> <li><a href="<?php echo the_field('twitter'); ?>"><i class="fa fa-twitter"></i></a></li> <?php endif; ?> <?php if( get_field('linkedin') ): ?> <li><a href="<?php echo the_field('linkedin'); ?>"><i class="fa fa-linkedin"></i></a></li> <?php endif; ?> <?php if( get_field('instagram') ): ?> <li><a href="<?php echo the_field('instagram'); ?>"><i class="fa fa-instagram"></i></a></li> <?php endif; ?> <?php if( get_field('github') ): ?> <li><a href="<?php echo the_field('github'); ?>"><i class="fa fa-github"></i></a></li> <?php endif; ?> <?php if( get_field('dribbble') ): ?> <li><a href="<?php echo the_field('dribbble'); ?>"><i class="fa fa-dribbble"></i></a></li> <?php endif; ?> <?php if( get_field('behance') ): ?> <li><a href="<?php echo the_field('behance'); ?>"><i class="fa fa-behance"></i></a></li> <?php endif; ?> </ul> </div> <div> <section class=activityArtiste> <p>Activité : <?php // acfArtistes_Activity $field = get_field_object( 'acfArtistes_Activity' ); $value = $field['value']; $choices = $field['choices']; if ( $value ): foreach ( $value as $v ): echo $choices[ $v ]; endforeach; endif; ?> </section> <section class='pays'> <?php //Fonction Uppercase premier lettre : http://php.net/manual/fr/function.ucfirst.php $country = get_field('pays'); $country = ucfirst($country); ?> <p>Pays : <?php echo $country; ?></p> </section> <section class="birthdayArtiste"> <!-- https://www.gregoirenoyelle.com/acf-creer-une-date-intertionalisable/ --> <?php $date_d = get_field('acfArtistes_Birthday'); // Extraire Y,M,D $Y = substr($date_d, 0, 4); $M = substr($date_d, 4, 2); $d = substr($date_d, 6, 2); // Créer le format UNIX $time_d = strtotime("{$d}-{$M}-{$Y}"); ?> <p>Né le : <?php echo date('d', $time_d); ?> <?php echo date_i18n('M', $time_d); ?> <?php echo date('Y', $time_d); ?> </p> </section> </div> </div> <div class="col-md-3"> <h1 class="H1withoutTopMargin">Label</h1> <?php $posts = get_field('acfArtistes_label'); if($posts): ?> <section class="LabelsListe"> <ul> <?php foreach( $posts as $post): // ne pas changer $post IMPORTANT setup_postdata($post); ?> <li> <?php the_post_thumbnail( array(80, 80) ); ; //https://developer.wordpress.org/reference/functions/the_post_thumbnail/?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li> <?php endforeach; ?> </ul> </section> <?php wp_reset_postdata(); // IMPORTANT - réinitialiser l'objet $post sur la requête principale endif; ?> </div> </div> <div class="col-md-6 col-sm-12 backOrange">dddd</div> <div class="col-md-6 col-sm-12 backGreen">ddd</div> </div> <div> <p>My custom field: <?php the_field('acfArtistes_Birthday'); ?></p> <?php get_template_part( 'content', get_post_format() ); ?> </div> <?php acf_form(); ?> <!-- Begin Comments --> <div class="aligncenter"> <h4 class="titleComments">Une question, une remarque, un avis ?</h4> <h4>Laissez nous un commentaire.</h4> </div> <?php if ( comments_open() || get_comments_number() ) { comments_template( '', true ); } ?> <!-- End Comments --> <?php get_template_part( 'page-parts/posts-social-share' ); ?> <?php if( $related == 1 ) { get_template_part( 'page-parts/posts-related' ); } ?> <?php if ( sq_option( 'post_navigation', 1 ) == 1 ) : // Previous/next post navigation. kleo_post_nav(); endif; ?> <?php endwhile; ?> <?php get_template_part('page-parts/general-after-wrap');?> <?php get_footer(); ?>
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantSo if you can give me a code like
COPY CODE<div class="global_contain-3col"> <div class="col1">Contain Lorem impusub H1 and blabla</div> <div class="col2">Contain Lorem impusub H1 and blabla</div> <div class="col3">Contain Lorem impusub H1 and blabla</div> </div>
thanks you
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantSo i find the code to add a menu item in the buddypress nav
COPY CODEfunction custom_setup_nav() { global $bp; bp_core_new_nav_item( array( 'name' => __( 'Mes fichiers', 'buddypress' ), 'slug' => 'my-files', //domain.com/members/name/'SLUG' 'position' => 30, 'screen_function' => 'my-files_page' ) ); }
and for the redirection page i use this code in function php. but is not working i got a 404 error 🙁
COPY CODEadd_action( 'bp_setup_nav', 'custom_setup_nav' ); function about_page() { add_action( 'bp_template_title', 'my-files_page_screen_title' ); add_action( 'bp_template_content', 'my-files_page_show_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function about_page_show_screen_title() { echo 'About Page'; } function about_page_show_screen_content() { echo '<h1>helloyou</h1>'; }
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantRe Hello sorry i got a CSS probleme i make a button link
i don’t know why my button text don’t want take the color.
Normaly my text is whhite, but CSS stay with a blue text.
This is my codeCOPY CODE/*CPT Telechargement*/ .btn_telechargement { background: #00A3DE; background-image: -webkit-linear-gradient(top, #00A3DE, #007ea8); background-image: -moz-linear-gradient(top, #00A3DE, #007ea8); background-image: -ms-linear-gradient(top, #00A3DE, #007ea8); background-image: -o-linear-gradient(top, #00A3DE, #007ea8); background-image: linear-gradient(to bottom, #00A3DE, #007ea8); -webkit-border-radius: 28; -moz-border-radius: 28; border-radius: 28px; color: white !important; font-size: 20px; padding: 10px 20px 10px 20px; text-decoration: none; } .btn_telechargement:hover { background: #00b8f5; background-image: -webkit-linear-gradient(top, #00b8f5, #007ea8); background-image: -moz-linear-gradient(top, #00b8f5, #007ea8); background-image: -ms-linear-gradient(top, #00b8f5, #007ea8); background-image: -o-linear-gradient(top, #00b8f5, #007ea8); background-image: linear-gradient(to bottom, #00b8f5, #007ea8); text-decoration: none; }
And the color stay blue
I check with my webnavigator the problem is main.aI put !important in my white color but the main a color keep …
And I don’t find the attribute to reduce my button width.You can check the page here :
- http://www.zikrea.com/telechargements/exemple/
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantI make this code in kleochild/buddypress/buddypress-function.php
and a seconde time in : kleochild/buddypress/bp-custom.phpCOPY CODE<?php //On ajoute cet emplacement à la navigation de BP en passant par le fichier bp-custom.php function my_buddylinks_menu() { if( is_user_logged_in() ) : if ( has_nav_menu( 'bplink' ) ) { wp_nav_menu(array( 'theme_location' => 'bplink', 'items_wrap' =>'%3$s', 'container_class' => 'link-dropdown' ) ); } endif; } add_action( 'bp_member_options_nav', 'my_buddylinks_menu' ); add_action( 'bp_group_options_nav', 'my_buddylinks_menu' ); ?>
And this code in function.php to add a menu name bplink in the dashboard/apparence/menu where i put a custom URL with # to make my new menu item in BuddyPress
COPY CODE/*Personaliser le menu BuddyPress Le nouvel emplacement de menu se nomme bplink http://snippetbarn.bp-fr.net/ajouter-un-menu-personnalise-a-la-buddybar/ */ function register_my_menu() { register_nav_menu( 'bplink', 'bplink' ); } add_action( 'after_setup_theme', 'register_my_menu' ); ?>
But the new tem doesn’t come.
Do you know why ?
If you love Ableton check my blog :
www.zikrea.comApril 4, 2017 at 04:03 in reply to: Do you know a plugin to modify the BuddyBar (BuddyPress nav) #157546wilfriedMarseilleParticipantSorry
My Keyboard was in bug…
So I make a function to do that :COPY CODE<?php add_action( 'bp_setup_nav', 'test_board', 100 ); function test_board() { global $bp; bp_core_new_nav_item( array( 'name' => 'Tutoriel', 'slug' => 'buddy-tutorial', 'screen_function' => 'bpis_profile', 'position' => 10 ) ); } function bpis_profile () { echo do_shortcode('[bpis_tags]'); echo do_shortcode('[bpis_images]'); } ?>
But I don’t know the file than i have to copy/paste in my childtheme and how i have to rename it to edit my pages.
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantAnd this is the code of the single-page-slug.php
COPY CODE<?php /** * The Template for displaying all single posts * * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ get_header(); ?> <?php //Specific class for post listing */ if ( kleo_postmeta_enabled() ) { $meta_status = ' with-meta'; if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) { $meta_status .= ' inline-meta'; } add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "' . $meta_status . '"; return $cls;' ) ); } /* Related posts logic */ $related = sq_option( 'related_posts', 1 ); if ( ! is_singular('post') ) { $related = sq_option( 'related_custom_posts', 0 ); } //post setting if(get_cfield( 'related_posts') != '' ) { $related = get_cfield( 'related_posts' ); } ?> <?php get_template_part( 'page-parts/general-title-section' ); ?> <?php get_template_part( 'page-parts/general-before-wrap' );?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <!-- Begin Disposition --> <div class ="aligncenter"> <!-- Les champs à afficher --> <!-- Les champs ACF Texte --> <h1><?php the_field('telechargement_serie', $term);?></br><?php the_field('ACF_telechargement_nom', $term); ?></h1> <?php the_field('lien_youtube', $term)?> <?php //Afficher auteur Name $ACF_telechargement_auteur = get_field('telechargement_auteur'); if( !empty($ACF_telechargement_auteur) ): ?> <?php echo $ACF_telechargement_auteur[5]; ?> <?php endif; ?> <?php the_field('telechargement_auteur', $term); ?> <?php $author_id = get_the_author_meta('ID'); $author_badge = get_field('author_badge', 'user_'. $author_id ); ?> <img src="<?php echo $author_badge['url']; ?>" alt="<?php echo $author_badge['alt']; ?>" /> </div> <!-- Begin Comments --> <div class="aligncenter"> <h4 class="titleComments">Une question, une remarque, 3avis ?</h4> <h4>Laissez nous un commentaire.</h4> </div> <?php if ( comments_open() || get_comments_number() ) { comments_template( '', true ); } ?> <!-- End Comments --> <?php get_template_part( 'page-parts/posts-social-share' ); ?> <?php if( $related == 1 ) { get_template_part( 'page-parts/posts-related' ); } ?> <?php if ( sq_option( 'post_navigation', 1 ) == 1 ) : // Previous/next post navigation. kleo_post_nav(); endif; ?> <?php endwhile; ?> <?php get_template_part('page-parts/general-after-wrap');?> <?php get_footer(); ?>
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantSo I let you my single-telechargement.php code :
So
I got actually 2 problem
code to sho URL youtube doesn’t go but i got the block, the URL in the inspector.
But no the screen to see the video import from youtube.
this the code :COPY CODE<div> <iframe width="560" height="315" src=<?php the_field('lien_youtube', $term); ?> frameborder="0" allowfullscreen></iframe> </div>
And Always the same problem say before with the taxanomies ….
So i let you a link to see the Pages.
And i let you the script of my single-telechargement.php- http://www.zikrea.com/telechargements/exemple/
COPY CODE<?php /** * The Template for displaying all single posts * * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ get_header(); ?> <?php //Specific class for post listing */ if ( kleo_postmeta_enabled() ) { $meta_status = ' with-meta'; if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) { $meta_status .= ' inline-meta'; } add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "' . $meta_status . '"; return $cls;' ) ); } /* Related posts logic */ $related = sq_option( 'related_posts', 1 ); if ( ! is_singular('post') ) { $related = sq_option( 'related_custom_posts', 0 ); } //post setting if(get_cfield( 'related_posts') != '' ) { $related = get_cfield( 'related_posts' ); } ?> <?php get_template_part( 'page-parts/general-title-section' ); ?> <?php get_template_part( 'page-parts/general-before-wrap' );?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <!-- Begin Disposition --> <div class ="aligncenter"> <h1><?php the_field('telechargement_titre', $term); ?></h1> <p><?php the_field('telechargements_description', $term); ?></p> <div> <iframe width="560" height="315" src=<?php the_field('lien_youtube', $term); ?> frameborder="0" allowfullscreen></iframe> </div> <!-- Les champs à afficher --> <?php //Afficher l'image $image = get_field('image'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <?php endif; ?> </div> <!-- Begin Comments --> <div class="aligncenter"> <h4 class="titleComments">Une question, une remarque, 3avis ?</h4> <h4>Laissez nous un commentaire.</h4> </div> <?php if ( comments_open() || get_comments_number() ) { comments_template( '', true ); } ?> <!-- End Comments --> <?php get_template_part( 'page-parts/posts-social-share' ); ?> <?php if( $related == 1 ) { get_template_part( 'page-parts/posts-related' ); } ?> <?php if ( sq_option( 'post_navigation', 1 ) == 1 ) : // Previous/next post navigation. kleo_post_nav(); endif; ?> <?php endwhile; ?> <?php get_template_part('page-parts/general-after-wrap');?> <?php get_footer(); ?>
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantSorry
In reality I just copy the single.php and i rename it with my single-slug-name.php
And i have to remake my own template directly without change this famous line.But i have a second question.
In my custom post type I put some Advanced custom Fields.
I try to show it in front end but i don’t get it.I have the <h1>Tototot</h1>
But with the
<h2><?php if (get_field(‘logiciel’)) ?></h2>
<h2><?php if (get_field(‘lien_youtube’)) ?></h2>I don’t see the field in front end.
I let you the code and the link to see the demo is :
- http://www.zikrea.com/telechargements/dgf/
COPY CODE<?php /** * The Template for displaying all single posts * * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ get_header(); ?> <?php //Specific class for post listing */ if ( kleo_postmeta_enabled() ) { $meta_status = ' with-meta'; if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) { $meta_status .= ' inline-meta'; } add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "' . $meta_status . '"; return $cls;' ) ); } /* Related posts logic */ $related = sq_option( 'related_posts', 1 ); if ( ! is_singular('post') ) { $related = sq_option( 'related_custom_posts', 0 ); } //post setting if(get_cfield( 'related_posts') != '' ) { $related = get_cfield( 'related_posts' ); } ?> <?php get_template_part( 'page-parts/general-title-section' ); ?> <?php get_template_part( 'page-parts/general-before-wrap' );?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <h1>totopto</h1> <h2><?php if (get_field('logiciel')) ?></h2> <h2><?php if (get_field('lien_youtube')) ?></h2> <!-- Begin Comments --> <div class="aligncenter"> <h4 class="titleComments">Une question, une remarque, 3avis ?</h4> <h4>Laissez nous un commentaire.</h4> </div> <?php if ( comments_open() || get_comments_number() ) { comments_template( '', true ); } ?> <!-- End Comments --> <?php get_template_part( 'page-parts/posts-social-share' ); ?> <?php if( $related == 1 ) { get_template_part( 'page-parts/posts-related' ); } ?> <?php if ( sq_option( 'post_navigation', 1 ) == 1 ) : // Previous/next post navigation. kleo_post_nav(); endif; ?> <?php endwhile; ?> <?php get_template_part('page-parts/general-after-wrap');?> <?php get_footer(); ?>
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantsingle.telechargement.php
COPY CODE<?php /** * The Template for displaying all single posts * * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ get_header(); ?> <?php //Specific class for post listing */ if ( kleo_postmeta_enabled() ) { $meta_status = ' with-meta'; if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) { $meta_status .= ' inline-meta'; } add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "' . $meta_status . '"; return $cls;' ) ); } /* Related posts logic */ $related = sq_option( 'related_posts', 1 ); if ( ! is_singular('post') ) { $related = sq_option( 'related_custom_posts', 0 ); } //post setting if(get_cfield( 'related_posts') != '' ) { $related = get_cfield( 'related_posts' ); } ?> <?php get_template_part( 'page-parts/general-title-section' ); ?> <?php get_template_part( 'page-parts/general-before-wrap' );?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <!-- Begin Comments --> <div class="aligncenter"> <h4 class="titleComments">Une question, une remarque, un avis ?</h4> <h4>Laissez nous un commentaire.</h4> </div> <?php if ( comments_open() || get_comments_number() ) { comments_template( '', true ); } ?> <!-- End Comments --> <?php get_template_part( 'page-parts/posts-social-share' ); ?> <?php if( $related == 1 ) { get_template_part( 'page-parts/posts-related' ); } ?> <?php if ( sq_option( 'post_navigation', 1 ) == 1 ) : // Previous/next post navigation. kleo_post_nav(); endif; ?> <?php endwhile; ?> <?php get_template_part('page-parts/general-after-wrap');?> <?php get_footer(); ?>
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantCOPY CODE‘<?php /** Template Name : TELECHARGEMENT */ get_header(); ?> <?php get_template_part(‘page-parts/general-title-section’); ?> <?php get_template_part(‘page-parts/general-before-wrap’); ?> <?php if ( have_posts() ) : ?> <?php // Start the Loop. while ( have_posts() ) : the_post(); ?> <?php /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( ‘content-toto’ ); ?> <?php get_template_part( ‘page-parts/posts-social-share’ ); ?> <?php if ( sq_option( ‘page_comments’, 0 ) == 1 ): ?> <!– Begin Comments –> <?php if ( comments_open() || get_comments_number() ) { comments_template( ”, true ); } ?> <!– End Comments –> <?php endif; ?> <?php endwhile; ?> <?php endif; ?> <?php get_template_part(‘page-parts/general-after-wrap’); ?> <?php get_footer(); ?>’
If you love Ableton check my blog :
www.zikrea.comDecember 7, 2016 at 12:44 in reply to: A bad redirictiono when i connect my profil on my blog #146321wilfriedMarseilleParticipantCOPY CODE<?php /** * @package WordPress * @subpackage Kleo * @author SeventhQueen <themesupport@seventhqueen.com> * @since Kleo 1.0 */ /** * Kleo Child Theme Functions * Add custom code below */ /*Ajouter image sous le menu*//* add_action('kleo_before_content','my_header_image'); function my_header_image() { echo '<img class="banner" src="http://www.zikrea.com/wp-content/uploads/2015/10/Un_blog_mao_associatifOK.jpg" />'; }*/ /*Ajouter slider en bas d'un article*/ /* function KleoAddSlideUnderPosts( $content ) { if( is_single() ) { $revslidershortcode = do_shortcode('[rev_slider alias="acc3"]'); $content .= $revslidershortcode; } return $content; } add_filter('the_content', 'KleoAddSlideUnderPosts'); */ /*Ajouter slider endessous le menu*/ function KleoAddSlideUnderPosts( $content ) { if( is_single() ) { $revslidershortcode = do_shortcode('[rev_slider alias="acc3"]'); $content = $revslidershortcode . $content; } return $content; } add_filter('the_content', 'KleoAddSlideUnderPosts'); /*Supprimer l'icone des thumbnails*/ add_action( 'after_setup_theme', 'change_hover_element', 10 ); function change_hover_element() { global $kleo_config; $kleo_config['image_overlay'] = '<span class="hover-element"><i class="equalizer"></i></span>'; } /*Function metadonné : modification auteur*/ if ( ! function_exists( 'kleo_entry_meta' ) ) : /** * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. * Create your own kleo_entry_meta() to override in a child theme. * @since 1.0 */ function kleo_entry_meta( $echo = true, $att = array() ) { global $kleo_config; $meta_list = array(); $author_links = ''; $meta_elements = sq_option( 'blog_meta_elements', $kleo_config['blog_meta_defaults'] ); // Translators: used between list items, there is a space after the comma. if ( in_array( 'categories', $meta_elements ) ) { $categories_list = get_the_category_list(__(', ', 'kleo_framework')); } // Translators: used between list items, there is a space after the comma. if ( in_array('tags', $meta_elements ) ) { $tag_list = get_the_tag_list('', __(', ', 'kleo_framework')); } $date = sprintf( '<a href="%1$s" rel="bookmark" class="post-time">' . '<time class="entry-date" datetime="%2$s">%3$s</time>' . '<time class="modify-date hide hidden updated" datetime="%4$s">%5$s</time>' . '</a>', esc_url( get_permalink() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_html( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); if ( is_array( $meta_elements ) && !empty( $meta_elements ) ) { if ( in_array( 'author_link', $meta_elements ) || in_array( 'avatar', $meta_elements ) ) { /* If buddypress is active then create a link to Buddypress profile instead */ if (function_exists( 'bp_is_active' ) ) { $author_link = esc_url( bp_core_get_userlink( get_the_author_meta( 'ID' ), $no_anchor = false, $just_link = true ) ); $author_title = esc_attr( sprintf( __( 'View %s\'s profile', 'kleo_framework' ), get_the_author() ) ); } else { $author_link = esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); $author_title = esc_attr( sprintf( __( 'View all POSTS by %s', 'kleo_framework' ), get_the_author() ) ); } $author = sprintf( '<a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s %4$s</a>', $author_link, $author_title, in_array( 'avatar', $meta_elements ) ? get_avatar( get_the_author_meta( 'ID' ), 50) : '', in_array( 'author_link', $meta_elements ) ? '<span class="author-name">' .'Auteur : '. get_the_author() . '</span>' : '' ); $meta_list[] = '<small class="meta-author author vcard">' . $author . '</small>'; } if ( function_exists( 'bp_is_active' ) ) { if ( in_array( 'profile', $meta_elements ) ) { $author_links .= '<a href="' . bp_core_get_userlink( get_the_author_meta( 'ID' ), $no_anchor = false, $just_link = true ) . '">' . '<i class="icon-user-1 hover-tip" ' . 'data-original-title="' . esc_attr(sprintf(__('View profile', 'kleo_framework'), get_the_author())) . '"' . 'data-toggle="tooltip"' . 'data-placement="top"></i>' . '</a>'; } if ( bp_is_active( 'messages' ) ) { if ( in_array( 'message', $meta_elements ) ) { $author_links .= '<a href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( get_the_author_meta( 'ID' ) ) ) . '">' . '<i class="icon-mail hover-tip" ' . 'data-original-title="' . esc_attr(sprintf(__('Contact %s', 'kleo_framework'), get_the_author())) . '" ' . 'data-toggle="tooltip" ' . 'data-placement="top"></i>' . '</a>'; } } } if ( in_array( 'archive', $meta_elements ) ) { $author_links .= '<a href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' . '<i class="icon-docs hover-tip" ' . 'data-original-title="' . esc_attr(sprintf(__('View all posts by %s', 'kleo_framework'), get_the_author())) . '" ' . 'data-toggle="tooltip" ' . 'data-placement="top"></i>' . '</a>'; } } if ( $author_links != '' ) { $meta_list[] = '<small class="meta-links">' . $author_links . '</small>'; } if (in_array( 'date', $meta_elements ) ) { $meta_list[] = '<small>' . $date . '</small>'; } $cat_tag = array(); if ( isset( $categories_list ) && $categories_list ) { $cat_tag[] = $categories_list; } if ( isset( $tag_list ) && $tag_list ) { $cat_tag[] = $tag_list; } if (!empty($cat_tag)) { $meta_list[] = '<small class="meta-category">'.implode(", ",$cat_tag).'</small>'; } //comments if ((!isset($att['comments']) || (isset($att['comments']) && $att['comments'] !== false)) && in_array( 'comments', $meta_elements )) { $meta_list[] = '<small class="meta-comment-count"><a href="'. get_permalink().'#comments">'.get_comments_number() . ' <i class="icon-chat-1 hover-tip" ' . 'data-original-title="'.sprintf( _n( 'This article has one comment', 'This article has %1$s comments', get_comments_number(), 'kleo_framework' ),number_format_i18n( get_comments_number() ) ).'" ' . 'data-toggle="tooltip" ' . 'data-placement="top"></i>' . '</a></small>'; } $meta_separator = isset( $att['separator'] ) ? $att['separator'] : sq_option( 'blog_meta_sep', ', ') ; if ( $echo ) { echo implode( $meta_separator, $meta_list ); } else { return implode( $meta_separator, $meta_list ); } } endif;
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantIs strange beacause when i put 100% and i look in a computer screen,
the field is too little…I will preffer put 100% for all screen.
Do you know why is little with this code on a computer screen and no on a smartphone screen ?
COPY CODE#input_7_1 { width: 100%; }
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantThe both CSS code don’t work.
But i found a solution :COPY CODE#input_7_1 { width: auto; }
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantHi,
Do you test it ? Because when i replace with the code in the last link than you give me, i got a white page.
COPY CODEfunction KleoAddSlideUnderPosts( $content ) { if( is_single() ) { $revslidershortcode = do_shortcode('[rev_slider alias="acc3"]'); $content = $revslidershortcode . $content; } return $content; } add_filter('the_content', 'KleoAddSlideUnderPosts');
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantSooo …. a lot of probleme for this Button (Newsletter in the footer)….
I explain you. I try to put one line with submit button (je m’abonne ) With the input (where the user put his email). And I try to put the Label ( Recevez nos meilleurs news ) with the same size of my input email more the button at the right of the input.So i get some problems ..
The submit button can’t go above of the email input. And the problem is than the black border of the input email go on the submit button. And is not nice …. So How can I put the submit button just one more pixel ?Second Problem : Is the same than before with the Focus.
Third Problem : Responsive Design. I try to understand it. But i think than i need a example.
With a very big Screen the position are Ok. But on my MacBookProScreen the button is not in a good position. If you can give me an example to get the same position with a MacBookPro than a bigScreen.Is My Code :
COPY CODE/***************** NEWS LETTERS ******************/ /*LabelMailChimp Recevez nos meilleurs ....*/ .mailchimplab{ font-size: 23.6px; max-width: 3000px; } /*Bouton s'abonner*/ .abonnement { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; position: relative; cursor: pointer; padding: 0 25px 0 20px; font: normal 21.3px/2.4 "Open Sans", Helvetica, sans-serif; color: #407F7F; text-transform: uppercase; -o-text-overflow: clip; text-overflow: clip; background: #0D4D4D; -webkit-box-shadow: 0 5px 0 0 #003333 ; /*box-shadow: 0 5px 0 0 #003333 ;*/ text-shadow: 0 1px 1px rgba(87,151,180,0.36) ; -webkit-transition: top 50ms cubic-bezier(0.42, 0, 0.58, 1); -moz-transition: top 50ms cubic-bezier(0.42, 0, 0.58, 1); -o-transition: top 50ms cubic-bezier(0.42, 0, 0.58, 1); transition: top 50ms cubic-bezier(0.42, 0, 0.58, 1); margin: 0 auto; text-align: center; border: solid 2px #0D4D4D !important; border-top-right-radius : 10px; border-bottom-right-radius : 10px; } .abonnement:hover { -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } .abonnement:active { top: 2px; -webkit-box-shadow: 0 3px 0 0 #003333 ; box-shadow: 0 3px 0 0 #003333 ; -webkit-transform-origin: 50% 100% 0; transform-origin: 50% 100% 0; color:#669999 ; } /*Positionnement et taille du boutton s'abboner*/ @media screen and (min-width: 800px) { .mc4wp-form button, .mc4wp-form input[type=button], .mc4wp-form input[type=submit] { cursor: pointer; display: inline-block; -webkit-appearance: none; -moz-appearance: none; appearance: none; float: right; margin-top: -18%; margin-left: 250px; position: absolute; height: 41px !important; } @media screen and (min-width: 1280px){ .mc4wp-form button, .mc4wp-form input[type=button], .mc4wp-form input[type=submit]{ margin-top: -18%; } } } @media screen and (min-width: 800px) { .mc4wp-form button, .mc4wp-form input[type=button], .mc4wp-form input[type=submit]:focus{ cursor: pointer; display: inline-block; -webkit-appearance: none; -moz-appearance: none; appearance: none; float: right; margin-top: -18%; margin-left: 250px; position: absolute; } }
Thanks you i’m on this probleme since 12 o clock …
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantHello
So i try :focus but no is changing.
You can check my coe hereCOPY CODE/*Positionnement boutton s'abboner*/ @media screen and (min-width: 800px) { .mc4wp-form button, .mc4wp-form input[type=button], .mc4wp-form input[type=submit] { cursor: pointer; display: inline-block; -webkit-appearance: none; -moz-appearance: none; appearance: none; float: right; margin-top: -18%; margin-left: 250px; position: absolute; height: 38px; } } @media screen and (min-width: 800px) { .mc4wp-form button, .mc4wp-form input[type=button], .mc4wp-form input[type=submit]:focus{ cursor: pointer; display: inline-block; -webkit-appearance: none; -moz-appearance: none; appearance: none; float: right; margin-top: -18%; margin-left: 250px; position: absolute; height: 38px; } }
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantAh Sorry, i got again a problem …
When i click my button it move at the top.
I try to copy/past with :active But is not working … Can you help me again please ?COPY CODE@media screen and (min-width: 800px) { .mc4wp-form button:active, .mc4wp-form input[type=button]:active, .mc4wp-form input[type=submit]:active { cursor: pointer; display: inline-block; -webkit-appearance: none; -moz-appearance: none; appearance: none; float: right; margin-top: -18%; margin-left: 250px; position: absolute; height: 38px; } }
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantThis is my CSS code for the menu
COPY CODE/*Menu*/ .kleo-main-header .nav.navbar-nav/*Navbar*/ { line-height: 0; } #menu-principale { font-family: "passion one"; font-size: 55px; margin: 10px; } li a { vertical-align: middle; font-size: 20px; } .logo img { margin-top: 10px; } .dropdown-menu .sub-menu .menu-item .menu-item-type-taxonomy .menu-item-object-category .menu-item-7294 { font-family: "passion one"; font-size: 20px; }
If you love Ableton check my blog :
www.zikrea.comwilfriedMarseilleParticipantpost-custom-like ( part page )
COPY CODE<?php /** * Displays social share icons * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ /* Likes */ $like_status = sq_option( 'likes_status', 1 ); $exclude_likes = str_replace(' ', '', trim(strip_tags(sq_option('likes_exclude')))); $exclude_likes_ids = explode( ',', $exclude_likes ); if( in_array( get_the_ID(), $exclude_likes_ids ) ) { $like_status = 0; } if ( $like_status != 1 ) { return; } ?> <section class="main-color container-wrap social-share-wrap"> <div class="container"> <div class="votre-avis"> <div class="hr-title hr-long"><abbr><?php _e("Votre avis nous intéresse", "kleo_framework"); ?></abbr></div> <?php if ( $like_status == 1 ) : ?> <span class="kleo-love"> <?php do_action('kleo_show_love'); ?> </span> <?php endif; ?> <?php endif; ?> </div> </div> </section>
And the single.php
COPY CODE<?php /** * The Template for displaying all single posts * * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ get_header(); ?> <?php //Specific class for post listing */ if ( kleo_postmeta_enabled() ) { $meta_status = ' with-meta'; add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "'.$meta_status.'"; return $cls;' ) ); } /* Related posts logic */ $related = sq_option( 'related_posts', 1 ); if ( ! is_singular('post') ) { $related = sq_option( 'related_custom_posts', 0 ); } //post setting if(get_cfield( 'related_posts') != '' ) { $related = get_cfield( 'related_posts' ); } ?> <?php get_template_part( 'page-parts/general-title-section' ); ?> <?php get_template_part( 'page-parts/general-before-wrap' );?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php get_template_part( 'page-parts/posts-validation-like-custom.php' ); ?> <?php get_template_part( 'page-parts/posts-social-share2' ); ?> <?php if( $related == 1 ) { get_template_part( 'page-parts/posts-related' ); } ?> <?php if ( sq_option( 'post_navigation', 1 ) == 1 ) : // Previous/next post navigation. kleo_post_nav(); endif; ?> <!-- Begin Comments --> <?php comments_template( '', true ); ?> <!-- End Comments --> <?php endwhile; ?> <?php get_template_part('page-parts/general-after-wrap');?> <?php get_footer(); ?>
If you love Ableton check my blog :
www.zikrea.com -
AuthorPosts