Forum Replies Created
-
AuthorPosts
-
Hi,
Thank you. That worked!
Regards,
DennisHi,
ok I understand. Is there a workaround? Because the viewers would like to read the country name in their language!
Regards,
DennisHi Rikard,
Your hint led me to the final working code, which is:function add_above_page_title() { if ( is_singular( 'goods' ) ) { ?> <div class="herstellerProdukt"><?php the_field('hersteller'); ?></div> <?php } } add_action('ava_after_main_container', 'add_above_page_title'); ?>
Thanks for your help! Topic can be closed.
Best regards,
DennisHi Rikard,
I changed the code slightly for me to work best:
function add_above_page_title(){ ?> <div class="herstellerProdukt"><?php the_field('hersteller'); ?></div> <?php } add_action('ava_after_main_container', 'add_above_page_title'); ?>
That is working fine now. I have the correct field above the title on a product page, see here:
https://www.itraco.ru/goods/%d0%bf%d0%be%d0%b2%d0%b5%d1%80%d1%85%d0%bd%d0%be%d1%81%d1%82%d0%bd%d1%8b%d0%b5-%d0%bc%d0%b0%d1%82%d0%b5%d1%80%d0%b8%d0%b0%d0%bb%d1%8b-3/Unfortunately I also see that field on a category page, like here:
https://www.itraco.ru/goods_category/%d0%b1%d1%83%d0%bc%d0%b0%d0%b3%d0%b8-%d1%80%d1%83%d0%bb%d0%be%d0%bd%d0%bd%d1%8b%d0%b5/How can I exclude this from every other type of page except my cpt “goods”?
Thanks for your help!
DennisHi Rikard,
Has the code to look like that?
echo "<div class='hersteller'><?php "the_field('hersteller');" ?></div>";
Thanks
DennisClose, thanks alot!
Thank you Peter!
That helped alot!
Best regards,
DennisHi Victoria,
Ok, then why does it sometimes happen that when I switch between avia builder and standard editor, that all the content is gone and I can’t bring it back? Normally I don’t switch between avia and standard, but it happened to me by accident and it was not a very good experience!
Thanks
DennisSorry, here is the link: http://www.zimmervermittlung-windrose.de/ukunft/ferienwohnung-die-zeese/
edit 03.09.2018: i cannot make a new reply. so i have to edit this one. i already logged out and back in. replay won’t be saved!
- This reply was modified 6 years, 2 months ago by Dennis.
Hi,
I found the problem, but idk why it is a problem. I had to deselect the custom post type category. So every post in the cpt is now without a category.
Can you imagine why?
Dennis
Back from holidays.
Problem still not solved. When I deactivate the Progress map plugin, enfold maps still don’t show up!
Please, I need further help!
Dennis
Hi Ismael,
Yes of course do I need that. It is a feature on the main page that uses that plugin. And it worked before together with the theme!
What could cause the conflict?
Dennis
Hi,
Now the login works again!
Dennis
Hi Dude,
I added your code and my functions.php now looks like this
<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ function cspm_custom_infobox_title($default_title, $post_id){ // $custom_title = get_post_meta($post_id, "infobox_title", true); $custom_title = wp_title(); return (!empty($custom_title)) ? $custom_title : $default_title; } add_filter("cspm_custom_infobox_title", "cspm_custom_infobox_title", 10, 2); function cspm_custom_infobox_description($default_description, $post_id){ $custom_content = get_post_meta($post_id, "eg-beschreibung", true); return (!empty($custom_content)) ? $custom_content : $default_description; } add_filter("cspm_custom_infobox_description", "cspm_custom_infobox_description", 10, 2); add_filter("cspm_large_infobox_content", "cspm_custom_infobox_description", 10, 2); /* * 'ukunft' Post type für Avia Builder hinzugefügt */ add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'ukunft'; /*instead add the name of the custom post type here*/ } } return $metabox; } // Add scripts to wp_head() function child_theme_head_script() { ?> <script id='avia_gmaps_framework_globals' type='text/javascript'> /* <![CDATA[ */ var avia_framework_globals = avia_framework_globals || {}; avia_framework_globals.gmap_api = 'AIzaSyBU4h5U0jMD-CbqGqHq4oVIFUN1ANB0Nhg'; avia_framework_globals.gmap_maps_loaded = 'https://maps.googleapis.com/maps/api/js?v=3.30&key=AIzaSyBU4h5U0jMD-CbqGqHq4oVIFUN1ANB0Nhg&callback=aviaOnGoogleMapsLoaded'; avia_framework_globals.gmap_builder_maps_loaded = 'https://maps.googleapis.com/maps/api/js?v=3.30&key=AIzaSyBU4h5U0jMD-CbqGqHq4oVIFUN1ANB0Nhg&callback=av_builder_maps_loaded'; avia_framework_globals.gmap_backend_maps_loaded = 'https://maps.googleapis.com/maps/api/js?v=3.30&callback=av_backend_maps_loaded'; avia_framework_globals.gmap_source = 'https://maps.googleapis.com/maps/api/js?v=3.30&key=AIzaSyBU4h5U0jMD-CbqGqHq4oVIFUN1ANB0Nhg'; avia_framework_globals.gmap_avia_api = 'http://www.zimmervermittlung-windrose.de/wp-content/themes/enfold/framework/js/conditional_load/avia_google_maps_api.js'; /* ]]> */ </script> <?php } add_action( 'wp_head', 'child_theme_head_script' ); ?>
Nothing changed regarding Google Maps. Is the code correct?
Dennis
That doesn’t help me. I have two websites on the same server. On one maps is running, on the other not. Both pretty similar and with Enfold. Both got their own api key. So what is wrong?
Hi Victoria,
I renamed those two files so they are not in use at the moment. Still no change.
How can a visitor disable Maps? I don’t understand that message.
And where does that 500 error come from? I didn’t change anything before that error.here you go
Any other ideas?
Hi Mike,
Yes, billing is enabled. Question is, why does it work on one site, but not on the other?
Also: another plugin (progress map) on the main page also uses google maps and is working, too!
I need this to solve soon!
Dennis
Hi Mike,
Geocoding is enabled and was before!
Dennis
Hi,
That worked well before. But ok, now each site has its own api key and it still doesn’t work!
What else can I try?
Dennis
Hi,
I’ve redone all the Google API things I could do and managed to make the map at http://www.pension-windrose.de/anreise/ work again. Though it didn’t work on for example: http://www.zimmervermittlung-windrose.de/ukunft/ferienwohnung-die-zeese/
It still doesn’t show the map. Both sites use the same API Key with no restrictions. I can’t find the error. Please help.Dennis
- This reply was modified 6 years, 4 months ago by Dennis.
Nope, didn’t work! Another solution?
Same problem here. Maps suddenly don’t work any more on my site!
Thanks alot Yigit. That worked for me! Topic can be closed.
Sorry, I didn’t save the user. Now it should work!
Here you go
Don’t forget me ;)
Yes, as I mentioned above I played with the value. Odd thing is, that the underline is not evenly wrong on each word. On some words there are 1 or 2 pixel too much on the left side and on some words on the right side!
-
AuthorPosts