Forum Replies Created
-
AuthorPosts
-
No, I didn’t. I have done it now and the background colour disappears. Thanks a lot!
Thanks, Yigit,
I could do this. But I wonder why it is not possible to delete the defined colour. If I hadn’t changed anything it would be empty too. Is it a bug?
Regards,
Sophie- This reply was modified 9 years, 7 months ago by Sophieja23.
Hi Rikard,
here is a link to the page. All words with a white background on the coloured section are bold and defined as black in the advanced setting. I would like to get rid of the (white) colour.
http://erfolgswelt24.com/jahrestraining-network-marketing/
Thanks, Sophie
This reply has been marked as private.Hi Rikard,
yes, we did some changes, but it worked correctly until now. I have just duplicated the domain http://erfolgswelt24.com to a subdomain and tested which file causes the error. It was the functions.php which has the following content:
`<?php
#
# wrap single product image in an extra div
#
add_action( ‘woocommerce_before_single_product_summary’, ‘avia_add_image_div’, 2);
add_action( ‘woocommerce_before_single_product_summary’, ‘avia_close_image_div’, 20);
function avia_add_image_div()
{
echo “<div class=’four units single-product-main-image alpha’>”;
}function avia_close_image_div()
{
global $avia_config;
$avia_config[‘currently_viewing’] = “shop_single”;echo “</div>”;
}#
# wrap single product summary in an extra div
#
add_action( ‘woocommerce_before_single_product_summary’, ‘avia_add_summary_div’, 25);
add_action( ‘woocommerce_after_single_product_summary’, ‘avia_close_summary_div’, 3);
function avia_add_summary_div()
{
echo “<div class=’four units single-product-summary’>”;
}function avia_close_summary_div()
{
echo “</div>”; //close out the summary
echo “<div class=’four units single-product-sidebar’>”;
get_sidebar();
echo “</div>”;
}// START WAVECDN CODE
// Shortcode for generating an URL (needed for embedding videos)
// Example:
// [wavecdn_url url=’http://jahrestraining-network.wavecdn.net/JTNM-Videos/TM007-Glaubenssaetze.wmv’%5D
function wavecdn_url_func($atts)
{
if(!isset($atts[‘url’])) return;$url = $atts[‘url’];
$ip = $_SERVER[‘REMOTE_ADDR’];
$ttl = 3600;
$key = ‘9FjbwohRQ092r2hBHOiewffoja’;$expires = gmdate(‘Y-m-d H:i:s’, gmmktime() + $ttl);
$hash = md5($url.’:’.$ip.’:’.$expires.’:’.$key);
$token = $hash.’:’.str_replace(‘=’, ”, base64_encode($expires));if(strpos($url, ‘?’)) $url .= ‘&token=’.$token;
else $url .= ‘?token=’.$token;return $url;
}
add_shortcode(‘wavecdn_url’, ‘wavecdn_url_func’);// Shortcode for generating a clickable link
// Examples:
// [wavecdn_link url=’http://jahrestraining-network.wavecdn.net/JTNM-Videos/TM007-Glaubenssaetze.wmv’%5D
// [wavecdn_link url=’http://jahrestraining-network.wavecdn.net/JTNM-Videos/TM007-Glaubenssaetze.wmv’ label=’Hier klicken’]
function wavecdn_link_func($atts)
{
if(!isset($atts[‘url’])) return;
$url = wavecdn_url_func(array(‘url’ => $atts[‘url’]));
$label = isset($atts[‘label’]) ? $atts[‘label’] : ‘Download’;$html = ‘‘.htmlentities(utf8_decode($label)).’‘;
return $html;
}
add_shortcode(‘wavecdn_link’, ‘wavecdn_link_func’);// Shortcode for embedding a video
function wavecdn_video_func($atts)
{
$r = ‘<script src=”http://jwpsrv.com/library/v686EBPyEeSyNCIAC0MJiQ.js”></script>’.”\n”;
$r .= ‘<div id=”myElement”>Lade…</div>’.”\n”;
$r .= ‘<script>// <![CDATA[‘.”\n”;
$r .= ‘jwplayer(“myElement”).setup({‘.”\n”;
$r .= ‘file: “‘.wavecdn_url_func($atts).'”,’.”\n”;
$r .= ‘width: 640,’.”\n”;
$r .= ‘height: 360’.”\n”;
$r .= ‘})’.”\n”;
$r .= ‘// ]]></script>’.”\n”;return $r;
}
add_shortcode(‘wavecdn_video’, ‘wavecdn_video_func’);// END WAVECDN CODE
add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.’/shortcodes/’);return $paths;
}/**
* Auto Complete all WooCommerce orders.
* Add to theme functions.php file
*/add_action( ‘woocommerce_thankyou’, ‘custom_woocommerce_auto_complete_order’ );
function custom_woocommerce_auto_complete_order( $order_id ) {
global $woocommerce;if ( !$order_id )
return;
$order = new WC_Order( $order_id );
$order->update_status( ‘completed’ );As mentioned it works fine in the past and I cannot see a connection to the template-builder.php.
Thanks for your help, Sophie
- This reply was modified 9 years, 7 months ago by Sophieja23.
That worked perfect thank you.
Just to understand: is this a bug in theme or do I understand something wrong?
Thanks, Sophie
This reply has been marked as private.Hi, just a quick feedback. For me the offered code works.
Thanks a lot, Sophie
Hi Ismael,
I didn’t do any modification regarding product layout. I updated woocommerce and ad the plugin magic affiliate. What can I do now?
Thanks, SophieHi, thank you. I didn’t use Enfold 3.0 but I updated it and now it works :)
Puh… something went wrong:
I get this error:
Fatal error: Cannot redeclare avia_new_section() (previously declared in /home/www/erfolgswelt24com/wp-content/themes/Enfold-Child/shortcodes/section.php:411) in /home/www/erfolgswelt24com/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/section.php on line 514
Thanking you for being so patient :)
SophieThank you. It worked and the menu is showing up again :)
Hi Ismael,
thank you so much for your answer. I guess I will do it with the wordpress exporter. It seems a bit to complicated for me ;)
Best regards, Sophie
It works now, thank you :)
- This reply was modified 10 years, 4 months ago by Sophieja23.
These are good news :) Thanks to Brock and Devin. I will try which way will be the best.
Have a nice evening,
SophieThat worked perfect! Thank you
-
AuthorPosts