Posted: March 22, 2014 at 6:22 am
|
Hi there, So i would like: I hope you have all the info you need. cheerss Pim |
Hi Pim, The information is separated by a line break ( http://cl.ly/image/372W3w3f3e3e — |
|
|
Oke that sounds clear, can i make a different class for, in my example, the numbers? Then i would have 2 different classes. So i can edit it in css as well? If so can you show me what i should change in the php file? cheers |
Hi Pim, If you look in your customized attendee_list.php template you’ll likely find something like this: $custom_question_1 = '<br />'.do_shortcode('[EE_ANSWER q="12" a="'.$id.'"]'); which can be changed to something like this: $custom_question_1 = '<span class="attendee-answer">'. do_shortcode('[EE_ANSWER q="12" a="'.$id.'"]') . '</span>'; Then you can add something like this in your custom stylesheet: .attendee-answer { float: right display: inline-block; } There may be a few other tweaks that are necessary to pull this off, and here are a few guides that may help: http://css-tricks.com/video-screencasts/15-introduction-to-firebug/ |
|
|
Hi again, thanks for all the information, sounds clear to me. and i guess i need to move it to the uploads section again, but where exactly? cheers Pim |
Hi Pim, Rather than editing the styles.css file for Event Espresso, I would recommend a plugin such as My Custom CSS to add your own styling to a custom style-sheet. The styles added using this will then override the Event Espresso default rules. Does that help? |
|
|
Hi there, I did as you told, and got the my custom css plugin, i changed the file in attendee_list.php and added the code in the plugin what looks like this: .attendee-answer { Any suggestions? cheers |
Did you also add the correct code that Josh posted to the attendee_list.php template? For example: $custom_question_1 = '<span class="attendee-answer">'. do_shortcode('[EE_ANSWER q="12" a="'.$id.'"]') . '</span>'; In the correct place you would like the numbers displayed? You will also need to set the questions id (q=”12″) to the correct ID for your custom question. |
|
|
Hi again, yes i posted the correct code, and the ID has to be set on 12. cheers |
Hello, I’ve taken a look at your page from my end and I’m seeing the content all on one line. Is it working for you? — |
|
|
Hi Lorenzo, Thank you for your quick response again! Any ideas? cheers |
I don’t see the attendee answer, but the extra markup is there: <span class="attendee-answer"></span> Which may mean q=12 isn’t the right number. It might be q=14. You’ll need to confirm this and check the ID of the question you want the answer displayed for. |
|
|
Hi there, It worked! You were right, we changed the order of questions so it had a different ID number, now it works perfectly!:) Thank you so much for the great support! cheersss |
The support post ‘Attendee List css Styling with [EE_ANSWER] shortcode’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.