Closed atwellpub closed 8 years ago
NVM this conditional logic works to replace the logo I had:
$logo = get_field('svtle-logo', $post->ID, false);
$old_logo = lp_get_value($post, $key, 'logo');
$final_logo = ($logo) ? $logo : $old_logo;
Found the issue with legacy images not displaying. But now there is an issue with broken fontawesome icons in the default content. Are you experiencing this?
negative. I am seeing the default checkmarks on the fontawesome list.
This template looks good to me
Here is what I am seeing:
With ACF Pro:
With ACF Lite
Make sure Inbound Pro is off and ACF Pro is disabled.
There is no checkbox in Svtle. What do you mean? I see default toggle values
But yeah with acf lite when I save the default content is gets garbled like this: http://www.screencast.com/t/qQlmbEgXvf38
This code fixes the line break problem but the list item shortcode output is still missing.
<?php
$content = wpautop($content);
echo do_shortcode($content); ?>
This is the new page: http://www.screencast.com/t/rmnMhunZ
The list shortcode outputs a style block directly into the content (which is probably bad) https://github.com/inboundnow/landing-pages/blob/master/shared/shortcodes/inbound-shortcodes.php#L531-L562
Other shortcodes work though. Probably need to move the CSS output of the shortcode elsewhere
@atwellpub do you know how to inline this css in wp_head/wp_footer instead? https://github.com/inboundnow/landing-pages/blob/master/shared/shortcodes/inbound-shortcodes.php#L532-L562
The CSS IDs need to be unique in case there are multiple lists with different icons in use
I am not quite sure I understand the question, but I just ran another round of tests and the shortcode list checkmarks seem to be populating correcty before save, after save, with acf pro on, and off.
You could do it with an action hook.
Form below content on mobile is broke.
Logo is broken from my previous unsaved versions: http://www.screencast.com/t/8YKMWAUlyErg
I tried grabbing the old value and using it like:
but that didn't work either. Tried with and without acf pro activated. No luck.
It looks like this is happening on simple solid lite as well