Forum Replies Created
-
AuthorPosts
-
Hi Ismael,
Okay so I managed to successfully update this time (not sure, maybe my crappy internet timed out while it was updating…anyway, it’s fine now!). So now could you take a look at that page please and see why the Tab Element isn’t working?
Thanks so much!
Best,
CamilleHi Yigit,
So I updated and lost all my customizations. So I reverted back to 3.08.I have a child theme, so even if I update within the Enfold section in WordPress, I shouldn’t lose any custom files, right? Not sure why that happened.
I just recently switched from a Linux hosting plan to a Managed WordPress plan in GoDaddy, would that affect the update?
Thanks!
CamilleHi Yigit,
Okay I’ve updated to 3.1. Still no change.
Thanks,
CamilleThis reply has been marked as private.Sorry, please go to this link instead: http://nutsandboltsspeedtraining.com/powerpoint-resources-new/
Wonderful! Thank you very much!
Ah, that did it, thanks! :)
December 18, 2014 at 9:35 am in reply to: Different Main Navigation Menu and Logo for Custom Post Type? – Fix? #369882Perfect, thanks Ismael!!!
December 12, 2014 at 9:34 am in reply to: Different Main Navigation Menu and Logo for Custom Post Type? – Fix? #367157Hi Ismael,
That worked, thank you so much! And so if I have a logo url redirect after that, how do I add those same page IDs to the custom post? Right now I have this:add_filter(‘avf_logo_link’, ‘avf_redirect_logo_link’);
function avf_redirect_logo_link($link) {
if(is_singular(‘spicypresentations’))
$link = ‘http://www.nutsandboltsspeedtraining.com/spicypresentations/’;
return $link;
}I want to add those 3 pages to this function.
Thanks!
December 10, 2014 at 8:30 am in reply to: Different Main Navigation Menu and Logo for Custom Post Type? – Fix? #365869Just tried that and got this error – Parse error: syntax error, unexpected ‘{‘ in /home/content/34/11243234/html/wp-content/themes/enfold-child/functions.php on line 71
Here’s the code I used, line 71 is bolded (it’s the second ‘{‘):
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if(is_page(array(3548,4176,4306,3546)))
{
$logo = “http://nutsandboltsspeedtraining.com/wp-content/uploads/2014/11/Spicy-Presentations-by-Lia-Logo.png”;
}
return $logo;
}December 9, 2014 at 9:00 pm in reply to: Different Main Navigation Menu and Logo for Custom Post Type? – Fix? #365605Hi Yigit,
I inserted the code above but it’s only working for the first page (3548), the others still have the other logo.
Thanks,
CamillePerfect, thank you!!!!
Hi Ismael, thanks for your reply. I went with the WordPress Popular Posts plugin, which seems to be working okay so far. Any way you could tell me the CSS I should put in the plugin’s stylesheet so that the widget looks just like the Enfold Latest News widget?
Thanks!December 4, 2014 at 12:03 am in reply to: Different Main Navigation Menu and Logo for Custom Post Type? #362589Great, thank you!
November 28, 2014 at 8:08 pm in reply to: Different Main Navigation Menu and Logo for Custom Post Type? #359847Hi Ismael, it just worked!!! I must have done something wrong last time!
Is there any way to control the size of this image?
Thanks so much!
November 27, 2014 at 8:05 am in reply to: Different Main Navigation Menu and Logo for Custom Post Type? #358876Hm, still not working. Just tried your latest code and got:
Parse error: syntax error, unexpected ‘:’ in /home/content/34/11243234/html/wp-content/themes/enfold-child/functions.php on line 64Must just be conflicting with a plugin or other code somewhere…
Thanks anyway for your help!
November 26, 2014 at 7:27 pm in reply to: Different Main Navigation Menu and Logo for Custom Post Type? #358480This reply has been marked as private.November 26, 2014 at 6:34 pm in reply to: Different Main Navigation Menu and Logo for Custom Post Type? #358427I tried again just now. I cleared my cache, re-typed in the following:
add_filter(‘avf_logo’,’new_logo_url;);
function new_logo_url($use_image){
if(is_singular(‘spicypresentations’)) {
$use_image=”http://nutsandboltsspeedtraining.com/wp-content/uploads/2014/11/sp-logo-rough.png”;
}
return $use_image;
}And I got this message:
Parse error: syntax error, unexpected T_STRING in /home/content/34/11243234/html/wp-content/themes/enfold-child/functions.php on line 64Line 64 is this: if(is_singular(‘spicypresentations’)) {
November 26, 2014 at 6:26 pm in reply to: Different Main Navigation Menu and Logo for Custom Post Type? #358421Hi Eliott, I tried that but when I try to load a custom post, I get an error:
Parse error: syntax error, unexpected ‘}’ in /home/content/34/11243234/html/wp-content/themes/enfold-child/functions.php on line 68Here’s the code I pasted in (‘spicypresentations’ is the slug of my custom post) and line 68 is the last line:
add_filter(‘avf_logo’,’new_logo_url’);
function new_logo_url($use_image){
if(is_singular(‘spicypresentations’)) {
$use_image = “http://nutsandboltsspeedtraining.com/wp-content/uploads/2014/11/sp-logo-rough.png”;
}
return $use_image;
}If it helps, here’s my site: http://www.nutsandboltsspeedtraining.com
In case it helps, here are the other things I’ve put in the functions.php or my child theme:
<?php@ini_set(‘display_errors’, 0);
add_action(‘woocommerce_thankyou’, ‘affiliate_tracking’);
function affiliate_tracking( $order_id )
{
global $wpdb;$order = new WC_Order( $order_id );
$order_total = $order->get_order_total();
$shipping = $order->order_shipping;
$total = $order_total – $shipping;
$coupon = $wpdb->get_var($wpdb->prepare(“SELECT order_item_name FROM wp_woocommerce_order_items where order_id = ‘$order_id’ and order_item_type = ‘coupon'”));echo ““;
}// Hook in
add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );// Our hooked in function – $fields is passed via the filter!
function custom_override_checkout_fields( $fields )
{
$fields[‘billing’][‘billing_email’][‘label’] = ‘Email (will also be used as your username)’;
$fields[‘account’][‘billing_email’] = $fields[‘billing’][‘billing_email’];
$fields[‘account’] = array_reverse($fields[‘account’]);
unset($fields[‘billing’][‘billing_email’]);
unset($fields[‘order’][‘order_comments’]);
$fields[‘billing’][‘billing_company’][‘required’] = false;
$fields[‘billing’][‘billing_phone’][‘required’] = false;
return $fields;
}add_filter (‘add_to_cart_redirect’, ‘woo_redirect_to_checkout’);
function woo_redirect_to_checkout() {
global $woocommerce;
$checkout_url = $woocommerce->cart->get_checkout_url();
return $checkout_url;
}add_filter(‘avf_blog_style’,’avia_change_archive_blog_layout’, 10, 2);
function avia_change_archive_blog_layout($layout, $context){
if($context == ‘archive’) $layout = ‘single-big’;
return $layout;
}add_filter( ‘post-format-standard’, ‘avia_category_content_filter’, 15, 1);
function avia_category_content_filter($current_post)
{
if(!is_single())
{
$current_post[‘content’] = get_the_excerpt();
$current_post[‘content’] .= ‘<div class=”read-more-link”>‘.__(‘Read more’,’avia_framework’).'<span class=”more-link-arrow”> →</span></div>’;
}
return $current_post;
}add_filter(‘avf_logo’,’new_logo_url’);
function new_logo_url($use_image){
if(is_singular(‘spicypresentations’)) {
$use_image = “http://nutsandboltsspeedtraining.com/wp-content/uploads/2014/11/sp-logo-rough.png”;
}
return $use_image;
}Thanks,
CamilleNovember 25, 2014 at 8:02 pm in reply to: Different Main Navigation Menu and Logo for Custom Post Type? #357856Hey Ismael,
I tried the code and it doesn’t change the url. What did you mean by “you might need to change the custom post type id”?
Thanks!November 25, 2014 at 2:19 am in reply to: Different Main Navigation Menu and Logo for Custom Post Type? #357297Hi Ismael,
Wonderful, I will use one of these plugins, thanks!
As for the logo, can I add pages to this code, like this?
add_filter(‘avf_logo’,’new_logo_url’);
function new_logo_url($use_image){
if(is_singular(‘sp’); (is_page(42)); (is_page(68)) {
$use_image = “http://kriesi.at/wp-content/themes/kriesi/images/logo.png”;
}
return $use_image;
}That worked! Fantastic, thank you Josue!
Hi Josue,
Thanks for your reply! But I actually want the logo to be the same image, I just want it so that when you click on it, it goes to a custom URL, instead of the Home URL.
I notice that in the framework / php / function-set-avia-frontend.php file, there is the following code:if(!function_exists(‘avia_logo’))
{
/**
* return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
* otherwise display the logo file linked in the css file for the .bg-logo class
* @return string the logo + url
*/
function avia_logo($use_image = “”, $sub = “”, $headline_type = “h1”, $dimension = “”)
{
$use_image = apply_filters(‘avf_logo’, $use_image);
$headline_type = apply_filters(‘avf_logo_headline’, $headline_type);
$sub = apply_filters(‘avf_logo_subtext’, $sub);
$alt = apply_filters(‘avf_logo_alt’, get_bloginfo(‘name’));
$link = apply_filters(‘avf_logo_link’, home_url(‘/’));if($sub) $sub = “<span class=’subtext’>$sub</span>”;
if($dimension === true) $dimension = “height=’100′ width=’300′”; //basically just for better page speed ranking :Pif($logo = avia_get_option(‘logo’))
{
$logo = apply_filters(‘avf_logo’, $logo);
if(is_numeric($logo)){ $logo = wp_get_attachment_image_src($logo, ‘full’); $logo = $logo[0]; }
$logo = ““;
$logo = “<$headline_type class=’logo’>“.$logo.”$sub</$headline_type>”;
}
else
{
$logo = get_bloginfo(‘name’);
if($use_image) $logo = ““;
$logo = “<$headline_type class=’logo bg-logo’>“.$logo.”$sub</$headline_type>”;
}$logo = apply_filters(‘avf_logo_final_output’, $logo, $use_image, $headline_type, $sub, $alt, $link);
return $logo;
}
}Is there something here that I can change to make it go from home_url to a custom URL?
Thanks!Got it, thanks Ismael!
October 2, 2014 at 7:32 pm in reply to: Permalink and SEO Settings Problems with Yoast WordPress SEO & Enfold #329168Hi Devin, Do you mean deactivating all other plugins besides Yoast? And then what? Sorry, not sure how this helps solve the issue? Thanks for helping and clarifying.
September 29, 2014 at 3:06 pm in reply to: Permalink and SEO Settings Problems with Yoast WordPress SEO & Enfold #326580I’m having the same issue and would be super appreciative if you guys could take a look. Beyond the SEO loss, it’s just super annoying to have pages redirect by themselves! Thanks
Sweet, it worked! Thanks a million!
Really? That’s some good news. It works fine on my iPad but not on a BBerry and iPhone. Here’s what the “Free 50+ Page eBook” page looks like on iPhone. The Headers and text appear, but the Color Sections’ code is visible as well as the size elements, like [av_one_fifth first].
Here’s what it looks like:
Also, I have a lightbox signup form (aweber) on the Free eBook page and Blog that doesn’t load quite right on mobile either, but maybe that’s an aweber issue?
Thanks for your help!
-
AuthorPosts