Manuel Engler
Forum Replies Created
-
Hi!
Thanks for your response and offer to help!
I just tried it again, this time with an “!important”:
—-
@media only screen and (max-width:500px){
#responsive_menu_pro_button {
top:115px !important;
}
}
—-This way it works! 🙂
Cheers,
ManuelForum: Plugins
In reply to: [Sticky Menu & Sticky Header] Cloned Nav is always visibleOk – thanks anyway!
Forum: Plugins
In reply to: [Sticky Menu & Sticky Header] Cloned Nav is always visibleWell, yeah – that makes absolutely sense. 🙂
Thanks for your fast reply.I want to have the navbar at the very top but without a background by default.
When scolling down it should get a background color.I now placed it just 1px below the very top – now it works.
Or do you maybe have another more elegant tip for me? 🙂One last thing:
Can you recommend a responsive menu plugin or script which works nice together with your sticky menu plugin? I don´t want to have another menu which is also doubled in the sourcecode 🙂Thanks again & Cheers,
ManuelForum: Hacks
In reply to: Making an additional input field to comment form safe🙂
Actually just one more thing:
What can I do to display the additional field to logged in users, too?Greetings & many Thanks!
ManuelForum: Hacks
In reply to: Making an additional input field to comment form safe@bcworkz:
Thanks again for taking your time and explaining. I absolutely understand that it´s above your will to try to figure out what´s my specific problem. 🙂
You helped me already though. I always try to understand whatever is going on, or to get the concept at least, and it´s helpful to get possible solutions/hints from guy´s like you and then trying to follow each step – even it does not solve the actual problem.@tara:
This is great!
Works exactly the way I wanted! 🙂
Appreciate your help very much – your hint finally solved that problem for me!
I was searching and reading for days.To you both and all:
It´s really very valuable for people like me – learning WP – to have experts out there willing to help and give advise. That´s AWESOME and far from a matter of course.
So: THANKS!!!Cheers,
ManuelForum: Hacks
In reply to: Making an additional input field to comment form safeHi bcworkz,
thanks very much for your explanation.
I appreciate that a lot!I understand what you wrote (I guess I did :-))
And I tried it but I think it´s not working though.
E.g I´m still able to put in script stuff in the new field which is executing after submitting the comment – if the filter would work this wouldn´t be possible, like in the regular fields (author, email, comment).Here´s the code I have in my functions.php
What am I doing wrong?add_filter( 'comment_form_defaults', 'change_comment_form_defaults'); function change_comment_form_defaults($default) { $commenter = wp_get_current_commenter(); $default['fields']['email'] .= '<p class="comment-form-author">' . '<label for="city">'. __('Your SynchroniCity') . '</label> <input id="city" name="city" size="30" type="text" /></p>'; return $default; } add_action( 'comment_post', 'save_comment_meta_data' ); function save_comment_meta_data( $comment_id ) { add_comment_meta( $comment_id, 'city', $_POST['city'] ); } add_filter( 'get_comment_author_link', 'attach_city_to_author' ); function attach_city_to_author( $author ) { $city = get_comment_meta( get_comment_ID(), 'city', true ); if ( $city ) $author .= " ($city)"; return $author; } $name = 'city'; $filter = "comment_form_field_{$name}"; add_filter( $filter, 'sanitize_text_field' ); add_filter( $filter, 'wp_filter_kses' ); add_filter( $filter, '_wp_specialchars', 30 );THANKS again!
Forum: Hacks
In reply to: Making an additional input field to comment form safeHi Tara,
thanks for your response.
I know there are a lot of plugins with which I should be able to create what I need.
I tried some of them already but wasn´t able to create exactly what I need. Especially because I also want to display the additional field input with the comment in the frontend.But it turned out that the explanation I posted above does exactly what I want – so I am happy already – if there wouldn´t be that safety-thing Andrew pointed out. 🙂
So I am hoping that somebody can help me with adding the filters he mentioned.
I´m sure it´s just about a couple of lines, I´m just too unexperienced up to now to get the concept.
Do you have a hint for me regarding that?Thanks again,
ManuelHey Jan,
thanks for your fast response.
You´re right, same ID twice, shouldn`t be. 🙂
Unfortunately I set up that site based on the Headway Theme which is generating that code automatically – I don´t have access to the code in that part (as far as I figured it out up to now).
Here´s a link were you can test yourself.
Just post a comment, then you see the h3 appearing below the comments-area.
Thanks again,
Manuel