ilmattiapascal
Forum Replies Created
-
jeremy aftern some months i’m still not able to make this works. Your function tweak doesn’t hide the original sharedaddy share button. At the end i ve always two sharing areas. The first is the original that i want to move under the footer of the content (and above the yarpp), and the other is the correct share area above yarpp and under the footer content.
you made also a plugin in another post that you asked me to try, but nothing. Now i’m learning a little better CSS and maybe with your help we can find a more drastic solution.
I was just wondering if i can call the class of the correct share buttons with another name so when i delete the original one, it doesn’t delete also the correct one..
i m always on a child theme of 20 12, i think my templates haven’t any complication which could avoid your solution from working great as the rest of your great plugin..
Forum: Fixing WordPress
In reply to: Make an icon change a numberthanks, at the end i found a nice simple plugin who makes that. it’s called “I recommend this”.
Forum: Fixing WordPress
In reply to: Change Sidebar Order for custom divisionsthanks for the reply but i think we didn’t reach a good solution.
what i have is some fresh new php code (not html) for my social icons. I repeat the code that i’ve in my sidebar.php child theme:
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> <div id="secondary" class="widget-area" role="complementary"> <aside id="social-icons" class="widget clear"> <ul> <li class="social-twitter"> <a href="#" title="Twitter" target="_blank"></a> </li> <li class="social-facebook"> <a href="https://www.facebook.com/lo.damerica" title="Facebook" target="_blank"></a> </li> <li class="social-instagram"> <a href="#" title="Instagram" target="_blank"></a> </li> <li class="social-contact"> <a href="#" title="Mail Me" target="_blank"></a> </li> <li class="social-pinterest"> <a href="#" title="Pinterest" target="_blank"></a> </li> </ul> </aside> <?php dynamic_sidebar( 'sidebar-1' ); ?> </div><!-- #secondary --> <?php endif; ?>
(the style.css is already posted in this discussion). With this code i ve some wonderfull made-by-me social icons on the top of the sidebar. I just want to put them wherever i want in the sidebar just like a normal widget.
the text widget didn’t work at all, i’ve got my icons in the sidebar but there were too many visualization error, and everytime i return to the dashboard, automatically this next text widget disappears. I guess is because i haven’t html but only php.
please, i don’t think i m asking the impossible. Just to move an object which is not a widget, in the sidebar.
Forum: Fixing WordPress
In reply to: Change Sidebar Order for custom divisionsi m simply making a child theme of 20 12. (or better, a frankenstein child theme ;))
i think it’s not this complex.
– I ve a sidebar with widgets.
– I wrote a new aside div for this sidebar with customizable social icons.
– this new working div appears on the top of my sidebar.
– i just want to place it wherever i want.the best thing in the world would be to transform this div in a real widget, so i could go in Aspect–>Widget and drag it where i want to.
But this is not forcely what i need. I just need to place inbetween two widgets.Normally, if i want to change the order of appearance of something like the content, i just need to copy and paste the code, up or down another element. But the sidebar.php isn’t like the other pages, it hasn’t the code of each widget. I only need to find the template where is written the whole code of my sidebar.
Forum: Fixing WordPress
In reply to: Change Sidebar Order for custom divisionsthank you for the reply.
i just want to be able to “widgetize” my new class. In the last hour i changed the code on the sidebar.php on the child theme folder, and now is that one:
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> <div id="secondary" class="widget-area" role="complementary"> <aside id="social-icons" class="widget clear"> <ul> <li class="social-twitter"> <a href="#" title="Twitter" target="_blank"></a> </li> <li class="social-facebook"> <a href="#" title="Facebook" target="_blank"></a> </li> <li class="social-instagram"> <a href="#" title="Instagram" target="_blank"></a> </li> <li class="social-contact"> <a href="#" title="Mail Me" target="_blank"></a> </li> <li class="social-pinterest"> <a href="#" title="Pinterest" target="_blank"></a> </li> </ul> </aside> <?php dynamic_sidebar( 'sidebar-1' ); ?> </div><!-- #secondary --> <?php endif; ?>
then i put on the style.css the rules:
/* SOCIAL ICONS IN SIDEBAR */ #social-icons li { opacity: 0.7; } #social-icons li:hover { opacity: 1; -webkit-transition: 200ms opacity; } #social-icons a:link, #social-icons a:visited { display: block; float: left; text-indent: -9999px; width: 50px; height: 50px; } .social-twitter a { background: url('images/twitter.png') no-repeat; } .social-facebook a { background: url('images/facebook.png') no-repeat; } .social-pinterest a { background: url('images/pinterest.png') no-repeat; } .social-contact a { background: url('images/gmail.png') no-repeat; } .social-instagram a { background: url('images/instagram.png') no-repeat; }
now i ve my new widget in the sidebar, and it works. BUT, the sad thing is that it is located on the top of the sidebar, and i’m not able to bring this element under any other widget.
do you think that there’s a way to really transform what i made in a simple widget to place wherever i want like the others under Aspect->Widget ? how can i achieve that?
Forum: Fixing WordPress
In reply to: Add Location with the date in the headerno problem i put a span class and it worked!
Forum: Fixing WordPress
In reply to: Put date, leave a comment and tags in the same linegreat, it worked! that’s all folks for the moment, thank you!
Forum: Fixing WordPress
In reply to: Put date, leave a comment and tags in the same linelast question, how can i avoid the word “Tags” when i show the tags?
i see Tags: people,fun,enjoy
when i would like to see just: people,fun,enjoy
i don’t see a place in the php where it says echo tags..
thanks!!!
Forum: Fixing WordPress
In reply to: Put date, leave a comment and tags in the same lineas always, your tricks works always like a charm.
i had only to change the width and now all the stuff is in the same line. Great. Thanks!
Forum: Fixing WordPress
In reply to: Put date, leave a comment and tags in the same linei would like but i m building the blog in remote, still not online..
the problem is simple. i ve
READ MORE…
9 JULY 2013
TAGS: ILLUSTRATIONS, PEOPLE
LEAVE A COMMENTwhile i would like to have :
READ MORE…
9 JULY 2013 TAGS:ILLUSTRATIONS, PEOPLE LEAVE A COMMENT
Forum: Fixing WordPress
In reply to: Put date, leave a comment and tags in the same linethe problem is in the footer of the post content so i thought it woulded be ok to post only the footer part.
<footer class="entry-meta"> <?php $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); echo $date ;?> <p><?php the_tags(); ?></p> <?php if ( comments_open() ) : ?> <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> <?php endif; // comments_open() ?> </footer>
where the CSS for this footer is :
footer.entry-meta { font-size: 13px; font-size: 0.928571429rem; line-height: 1.846153846; color: #33CC33; width: 180px; }
if you want all the content.php to better understand, the code is that:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> <div class="featured-post"> <?php _e( 'Featured post', 'twentytwelve' ); ?> </div> <?php endif; ?> <header class="entry-header"> <span class="category-title"> <?php foreach( get_the_category() as $category ) { $category_name = $category->cat_name; } echo ' <a href="' . get_category_link( $category->term_id ) . '">' . $category_name . '</a> '; ?> </span> <?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <h1 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h1> <?php endif; // is_single() ?> </header><!-- .entry-header --> <?php if( is_home() && $wp_query->current_post != 0 || is_home() && is_paged() || is_category() ) the_post_thumbnail(); ?> <?php if ( is_search() || is_archive() || is_category() || is_tag() || is_home() ) : // display Excerpts ?> <div class="entry-summary"> <?php the_excerpt(); ?> <a href="<?php echo get_permalink(); ?>"> Read More...</a> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <footer class="entry-meta"> <?php $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); echo $date ;?> <p><?php the_tags(); ?></p> <?php if ( comments_open() ) : ?> <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> <?php endif; // comments_open() ?> </footer> <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> <div class="author-info"> <div class="author-avatar"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?> </div><!-- .author-avatar --> <div class="author-description"> <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> <p><?php the_author_meta( 'description' ); ?></p> <div class="author-link"> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> </a> </div><!-- .author-link --> </div><!-- .author-description --> </div><!-- .author-info --> <?php endif; ?> </footer><!-- .entry-meta --> </article><!-- #post -->
hope it can help to help me ??
PS I tried to put in the footer entry meta the rule: display:inline and also inline block, but nothing happened…
Forum: Fixing WordPress
In reply to: Put date, leave a comment and tags in the same line<footer class="entry-meta"> <?php $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); echo $date ;?> <p><?php the_tags(); ?></p> <?php if ( comments_open() ) : ?> <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> <?php endif; // comments_open() ?> </footer>
that’s the footer..even if i think i ve to play with the style.css and position rules…but i m a little lost, i don’t know where and what i ve to put inside this files..
resolved by myself; i had a lack of memory with CSS so at first i wasn’t able to do it but now i did it.
simply i modified the margin in the sharing.css file into the folder sharedaddy of this plugin. Now i can visualize the icons with the right margin. thanks anyway.
Forum: Fixing WordPress
In reply to: How do i put the content template in the category page ?solved
Forum: Fixing WordPress
In reply to: How do i put the content template in the category page ?great. Thank you alchymyth, see u to the next problem. I ve nearly completed my blog so i ll not stress you too much anymore. Maybe i need only to change the layout in that category section with a custom content-cat.php file for categories with a new style.css layout..if i ll ve problems i ll write.
anyway, thanks again!