8 – Override contrib Disqus Drupal behavior settings

I want to override a contrib module’s library setting that is being attached to page using hook_js_settings_alter(). But, I am unable to change the setting that is being called in js. Here is the code that is being called in Disqus module Element: $element[‘#attached’][‘library’][] = ‘disqus/disqus’; $element[‘#attached’][‘drupalSettings’][‘disqus’] = $disqus; I want to override settings in…

Discover more

How to using two permalinks and two template for one post?

Sorry my English language is not good. I want to have two url permalink and two template for one post in wordpress 5.3. www.mywebsite.com/1214/my_post_name_1 www.mywebsite.com/1214/my_post_name_1_template_2 1214 = my post id I find this code and not work for me Or maybe I don’t know how to use it: function wpd_query_var( $query_vars ){ $query_vars[] = ‘is_play’;…

Discover more