Jeremy Herve
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display list of authors who have already postedWorks great, thank you very much!
Forum: Fixing WordPress
In reply to: Display list of authors who have already postedThank you Michael!
However I am not sure I know where to insert that bit… :s Can you help?
Forum: Themes and Templates
In reply to: Theme translation problemSorry about that, I guess I read your post too quickly.
In that case open index.php, and look for the following lines:
<?php comments_popup_link(__('No comments', 'inove'), __('1 comment', 'inove'), __('% comments', 'inove'), '', __('Comments off', 'inove')); ?>
Then you will just have to replace comments by the Polish translation.
Forum: Themes and Templates
In reply to: Theme translation problemA quick fix would be to open the
comments.php
file of your theme, looks for the lines mentioning_e('Comments', 'inove')
(there could be more than one) and replace by_e('komentarze', 'inove')
Hope that works!
Forum: Fixing WordPress
In reply to: the_post_thumbnail replaced by default imageThat works perfectly. I should really learn some PHP properly…
Thank you!
Forum: Fixing WordPress
In reply to: WordPress Address (URL) Accident – Misspelled – Can’t LoginYou’ll need to modify it in your database directly. Look for the url row in the wp_options table, ad modify there directly. It should get back to normal then.
Forum: Themes and Templates
In reply to: Images not aligning centerYou may want to add, or check the following lines to your css:
img.alignright {float:right; margin:0 0 1em 1em} img.alignleft {float:left; margin:0 1em 1em 0} img.aligncenter {display: block; margin-left: auto; margin-right: auto} a img.alignright {float:right; margin:0 0 1em 1em} a img.alignleft {float:left; margin:0 1em 1em 0} a img.aligncenter {display: block; margin-left: auto; margin-right: auto}
This is the original styling of images in WordPress, that should be integrated in every WordPress theme.
See Codex for more info.
Forum: Fixing WordPress
In reply to: One loop with two different the_post_thumbnail sizesIt is perfect now! Thank you very much for your quick and precise help!
And thank you for the small tip with
post first
, you saved me a few lines in my css. ??Forum: Fixing WordPress
In reply to: One loop with two different the_post_thumbnail sizesThanks for the quick anwser. I have tried, and I get a strange behavior now: the loop loads forever and I end up having +100 times the first entry repeated, without the content, and nothing else.
Any idea why it could happen? I must have done something wrong…Here is my index.php:
<?php get_header(); ?> <div id="content"> <?php if (have_posts()) : $postCount = 1; while (have_posts()) : $postCount++; ?> <div <?php if($postCount == 1) { ?>class="post-first"<?php } else { ?>class="post"<?php } ?> id="post-<?php the_ID(); ?>"> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'mytheme'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span> <span class="meta-sep"> | </span> <span class="cat-links"><?php echo get_the_category_list(', '); ?></span> <span class="meta-sep"> | </span> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'mytheme' ), __( '1 Comment', 'mytheme' ), __( '% Comments', 'mytheme' ) ) ?></span> </div><!-- .entry-meta --> <div class="entry-content"> <?php if($postCount == 1) { the_post_thumbnail(); } else { the_post_thumbnail('following-post-thumbnails'); } ?> <?php the_content( __( '<span class="meta-nav">Continue reading »</span>', 'mytheme' ) ); ?> </div><!-- .entry-content --> </div><!-- #post-<?php the_ID(); ?> --> <?php endwhile; endif; ?> <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> <div id="nav-below" class="navigation"> <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">«</span> Older posts', 'mytheme' )) ?></div> <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">»</span>', 'mytheme' )) ?></div> </div><!– #nav-below –> <?php } ?> <div class="clear"></div> </div><!-- end content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Social bookmarking buttons to add from the theme admin pageHi!
I am still stucked with that issue…
Here is what I have done so far:
In my functions.php
https://pastebin.com/f37ea5d17In single.php
https://pastebin.com/f3d9d923dBut I must miss something: everything is displayed in single.php, checkboxes activated or not; and when I try to modify checkboxes in the admin options panel, I get an error message:
“You do not have sufficient permissions to access this page.”Do you have any idea how to work this out?
Thanks for your help!
Forum: Plugins
In reply to: Plugin calling js file with wrong pathAlright, I changed the way I was calling the files, it solved the issue:
wp_enqueue_script('jquery'); wp_enqueue_script( 'jqueryui', plugins_url($path = 'category-accordion/js/jquery-ui.js'), array('jquery') ); wp_enqueue_script( 'categoryAccordion.ready', plugins_url($path = 'category-accordion/js/ready.js'), array('jqueryui') );
Forum: Plugins
In reply to: Plugin calling js file with wrong pathHi again!
Any chance that somebody got the same problem than me once, and could help?
Thanks!
Forum: Themes and Templates
In reply to: how to remove sidebars from contact page?I think we’d need a bit more info regarding your theme and settings in order to be able to help you.
With only the piece of code you mentioned earlier, you would not be able to display the contact form, unless you include it in one of the sidebars.If that’s the case, include the conditional tag esmi mentioned only for the sidebar that does not contain your contact form.
Hope that helps.
Forum: Fixing WordPress
In reply to: Display caption with the_post_thumbnailI am still stucked with that issue. Would anyone have an idea about how to solve it?
Thanks!!
Forum: Themes and Templates
In reply to: Hainvg Trouble Pulling Pictures to Front PageIf you want to show the pictures you inserted into your articles on the homepage, you’ll have to make some changes to the code.
In your theme, the file to modify will be index.php. Open it and locate
<?php the_excerpt(); ?>
This small piece of code shows up only a brief excerpt of your post, that you can actually define in the edit post panel.If you replace that function by
<?php the_content(); ?>
, it will call all the content of your post, not only the beginning.
It is then easy for you to decide what you want to show on the homepage: in the edit post panel, all your content placed above the<!--more-->
tag will be shown.Give it a try!
About the highlight of your links, that’s set in the style.css stylesheet.
If you do not want any hightlights, look for this part:#content h1 a{ color:#000; background:#FFFD87; line-height:37px; padding:1px 3px; } #content h2 a,h3 a,h4 a { line-height:29px; padding:1px 3px; } body a,h3 a:hover,.navigation a:hover { color:#000; background:#FFFD87; } body a:hover,#content h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h3 a { color:#FFFD87; background:#000; }
The
background:#FFFD87;
andbackground:#000;
attributes are responsible for the highlights. Remove them all or only part of them depending on the result you wanna achieve!