rachitarora
Forum Replies Created
-
Forum: Plugins
In reply to: [MultilingualPress] Remove hreflang tag from the page@wido I tried adding this code instead to my functions.php file and that worked
add_filter('multilingualpress.render_hreflang', function() { return false; });Looks like it was a version mismatch.
Thank you- This reply was modified 7 years, 5 months ago by rachitarora.
Forum: Plugins
In reply to: [MultilingualPress] Remove hreflang tag from the pageHi @wido I dont have any cache active. If I make any other changes to the functions.php file of the child theme, I see them immediately though.
Thanks.- This reply was modified 7 years, 5 months ago by rachitarora.
Forum: Plugins
In reply to: [MultilingualPress] Remove hreflang tag from the pageHi,
I am trying to add the lineadd_filter('multilingualpress.hreflang_type', '__return_false');in the functions.php of the child theme but I still see the<link rel="alternate" hreflang="en-US" href="https://www.niagaracruises.com/"><link rel="alternate" hreflang="fr-FR" href="https://www.niagaracruises.com/fr/">tags in the<head>.
Let me know if I am missing anything.
Thank you.- This reply was modified 7 years, 5 months ago by rachitarora.
- This reply was modified 7 years, 5 months ago by rachitarora.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] TablePress ADA accessibilityHi,
Thank you for the tip. Works like a charm 🙂
Thanks again.Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] TablePress ADA accessibilityHi,
When I am usingtablepress_cell_tag_attributesin my functions.php, I am trying to add the scope=”col” to particular rows but I am unable to do so. Below is the code I am usingfunction ada_tablepress_add_scope( $tag_attributes, $row_idx ) { if ($row_idx === 0) { $tag_attributes['scope'] = "col"; return $tag_attributes; } } add_filter( 'tablepress_cell_tag_attributes', 'ada_tablepress_add_scope' );I am getting the below error
Warning: Missing argument 2 for ada_tablepress_add_scope(), called in /var/www/public/wp-includes/class-wp-hook.php on line 288 and defined in /var/www/public/wp-content/themes/xxxxxxxxx/functions.php on line 99 Notice: Undefined variable: row_idx in /var/www/public/wp-content/themes/xxxxxxx/functions.php on line 100 Fatal error: Uncaught TypeError: Argument 1 passed to TablePress_Render::_attributes_array_to_string() must be of the type array, null given, called in /var/www/public/wp-content/plugins/tablepress/classesPlease let me know how to get around the above issue.
Thank you.