916VT
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Shopping Cart] Using the plugin without shortcodesShame on me, I was not looking on the right website doc…
Here it is : https://www.tipsandtricks-hq.com/ecommerce/simple-wp-shopping-cart-installation-usage-290
Sorry and thanks again !
Forum: Fixing WordPress
In reply to: Show current tagIt works perfectly fine !
Thanks a lot alchymyth, you’re my hero 🙂
Thanks again !
Forum: Fixing WordPress
In reply to: Show current tagI’m trying to figure something like that :
$html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}" . if ( single_tag_title == $tag->name ) { echo 'current'} . "'>";But without success so far…
Any help is more than welcome =)
Forum: Plugins
In reply to: [Polylang] Exclude category from loop, the Polylang wayAdd to your array something like :
'lang' => 'fr_FR'(fr_FR is may be not the right way to select the langage)
Forum: Fixing WordPress
In reply to: Comments are not showing up without refreshI create a new clean install and just insert my theme and the issue stays the same : it doesn’t work on Firefox.
I also tried on another laptop, no change neither.
If someone has a clue to solve that…
Forum: Fixing WordPress
In reply to: Looking for acting on parent categories onlyHi Daniel,
Maybe you may help me again with that.
I installed SEO WP by Yoast and use the function to remove /category/ on my url. Now, the function you provided above doesn’t work.
Do you think it’s possible to fix that somehow ?
Thanks again
Forum: Fixing WordPress
In reply to: Comments are not showing up without refreshI checked with Chrome, and it works.
Is there any reason to have that issue with Firefox only (v35.0.1) ? How can it work on Chrome and not with FF ?
On my local with FF, it works too.
Forum: Fixing WordPress
In reply to: Issue for changing Mystery Man avatarHi Konstantin,
You were right about the php version. I got it uprgrade from 5.2 to 5.5.
Also, the last code works fine for avatars anymore.
But I still have an issue with comments : when I use the test address, once I wrote and validate a comment, the page doesn’t load up with the comment. It’s not displayed and I need to reload the page to see it. It works when I’m connect as admin. So it looks like a wrong set up of discussion, but I should have at least the message about moderation (which is even not necessary because if you reload, the comment is there).
May we broke something with the code above ? It does not look related at all.
Thanks a lot for your help (again)
Forum: Fixing WordPress
In reply to: Issue for changing Mystery Man avatarFunctions is back to the hoster.
It’s the second example :
/* * New default avatar */ add_filter( 'pre_option_avatar_default', function( $value ) { return 'http://site.com/wp-content/themes/rttw_v3/img/avatar.jpg'; } );Forum: Fixing WordPress
In reply to: Issue for changing Mystery Man avatarOn local, yes, it looks to work just fine.
But when I sent the full folder with FTP to my site hoster, I’m getting the error message that I shared above. And it’s exactly the same files.
Forum: Fixing WordPress
In reply to: Issue for changing Mystery Man avatarThe website is not yet live but you can find the functions.php file here :
https://dl.dropboxusercontent.com/u/10351694/Theme/functions.php
I could make a special session for you if you like to see the backoff.
Forum: Fixing WordPress
In reply to: Issue for changing Mystery Man avatarThe url going to the image avatar.jpg works fine when it’s copy/paste on a tab.
And your last code works in local but keep broking the theme online…
Same mistake :
Parse error: syntax error, unexpected T_FUNCTION in /home/scarades/rttw/wp-content/themes/rttw_v5/functions.php on line 217
Forum: Fixing WordPress
In reply to: Issue for changing Mystery Man avatarSo you say I have to use only that part ?
add_filter( 'pre_option_avatar_default', 'my_pre_option_avatar_default' ); function my_pre_option_avatar_default( $value ) { return 'http://mysite.com/wp-content/themes/rttw_v3/img/avatar.jpg'; }Because the website came back but the avatar url return again :
http://1.gravatar.com/avatar/3923c5b0606e373cb28b02f249064f2f?s=80&d=http%3A%2F%2Fmysite.com%2Fwp-content%2Fthemes%2Frttw_v3%2Fimg%2Favatar.jpg%3Fs%3D80&r=GForum: Fixing WordPress
In reply to: Issue for changing Mystery Man avatarI tried online, but it brokes my theme/site. I have everywhere :
Parse error: syntax error, unexpected T_FUNCTION in /home/scarades/rttw/wp-content/themes/rttw_v3/functions.php on line 212
The full code :
/* * New default avatar */ add_filter( 'avatar_defaults', 'custom_default_avatar' ); function custom_default_avatar ( $avatar_defaults ) { $new_avatar_url = get_stylesheet_directory_uri() . '/img/avatars.jpg'; $avatar_defaults[$new_avatar_url] = 'New Default Gravatar'; return $avatar_defaults; } add_filter( 'pre_option_avatar_default', function( $value ) { return 'http://mysite.com/wp-content/themes/rttw_v2/img/avatar.jpg'; } );Forum: Fixing WordPress
In reply to: Issue for changing Mystery Man avatarOh yes sorry, it was here but just below :
add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('template_directory') . '/img/avatar.png'; $avatar_defaults[$myavatar] = "Own"; return $avatar_defaults; } add_filter( 'pre_option_avatar_default', function( $value ) { return 'http://localhost:8888/mysite/wp-content/themes/rttw_v2/img/avatar.png'; } );