funianrun
Forum Replies Created
-
Okay i figured this out.
I just had to go into the class ‘lifterlms/includes/class.llms.sidebars.php’ and edit the default in the function ‘get_theme_default_sidebar”s switch statement to this:
https://gyazo.com/a953d10bd4614f945b90790b4c132684
‘default:
$id = ‘sidebar-1′;’I also double checked my theme is using sidebar-1 and not some other name
- This reply was modified 5 years, 3 months ago by funianrun.
Forum: Plugins
In reply to: [Yoast SEO] Using ACF fields in the site description@algerpixel
I actually kinda figured it out after i wrote this, but for seo title tag only. Here is what I did:Turned on yoast SEo plugin. Then used this code:
add_filter('wpseo_title', 'filter_product_wpseo_title'); function filter_product_wpseo_title($title) { if( is_singular( 'my_post_type') ) { $title = get_field("title_tag"); $title = $title . " | " . get_bloginfo("name"); } return $title; }
- This reply was modified 5 years, 11 months ago by funianrun.
Forum: Plugins
In reply to: [Yoast SEO] Using ACF fields in the site descriptionDid you ever find the answer to this? I’m also very stuck trying to do this. I don’t understand how to get a pages variables and meta data into the filter function in functions.php
- This reply was modified 5 years, 11 months ago by funianrun.
Forum: Plugins
In reply to: [Hubbub Lite - Fast, Reliable Social Sharing Buttons] Exclude some pagesHi !
Thanks for this cool code @webdevmattcrom, I just have a question.Did you put this code in the index.php file ? I’m getting this error
call_user_func_array() expects parameter 1 to be a valid callback, function 'dbtours_cond_remove_socpug' not found or invalid function name
I included the following line in the index.php constructor:
add_filter( 'dpsp_output_front_end_content', 'dbtours_cond_remove_socpug');
then I put the following code among the other functions. Any idea what could cause this error ? I’m trying to make it so only my home page has these buttons
function dbtours_cond_remove_socpug( $output ) { if ( !is_home() ) { $output = ''; } return $output; }
- This reply was modified 7 years, 4 months ago by funianrun.