UmbrellaWeb
Forum Replies Created
-
Forum: Plugins
In reply to: [SEOPress - On-site SEO] _pk_testcookie_domain ERRORThanks or the update…
Well, rather than over complicate things and add in additional code to parse just the host… AS we are going to add the snippet in anyway the MOST SIMPLEST way to achieve the goal is to replace:
$html = "_paq.push(['setCookieDomain', '*.".get_home_url()."']);\n";
WITH
$html = "_paq.push(['setCookieDomain', '*.website.co.uk']);\n";
replacing website.co.uk with whatever you wish. Nice and simple and to the point (saves having to edit core file too).
At least thats what we found to be the EASIEST way!
Forum: Plugins
In reply to: [SEOPress - On-site SEO] _pk_testcookie_domain ERRORHi there, thats filter doesnt work. Copied and pasted as is into code snippets result is the same error:
There was an error setting cookie
_pk_testcookie_domain
. Please check domain and path. matomo.js:12:282
Can’t write cookie on domain *.https://website.co.ukSame on multiple sites. Do we need to replace anything in the filter provided?
get_home_url() pulls in the WHOLE url including protocol which is where the issue lies I think.
Forum: Plugins
In reply to: [LiteSpeed Cache] Mysterious VPI imagesHi,
So we deleted the contents within the boxes in the screenshots AND they were only examples. Pages/posts throughout the WHOLE site (primelegalsolicitors.co.uk) had this issue with different images being referenced and it was a hit an miss.
We did check all the files and didnt find anything anywhere but we also took a DB backup and on inspecting the sql file manually found this:
(60102,1952,'litespeed_vpi_list_mobile','a:1:{i:0;s:63:\"gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";}'),(60103,2440,'litespeed_vpi_list_mobile','a:1:{i:0;s:15:\"Sashinka-11.png\";}'),(60104,1523,'litespeed_vpi_list_mobile','a:2:{i:0;s:388:\"AAAAAnRSTlMAAHaTzTgAAAD9SURBVBgZ7cEBDQAAAMIg+6d+DwcMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgQqQrAAGit8CJAAAAAElFTkSuQmCC\";i:1;s:93:\"tbQegAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AyrYwAB98WvcAAAAABJRU5ErkJggg==\";}'),(60105,2405,'litespeed_vpi_list_mobile','a:1:{i:0;s:12:\"empty result\";}'),(60106,2160,'litespeed_vpi_list_mobile','a:5:{i:0;s:21:\"azat-tv-logo-pink.png\";i:2;s:41:\"sean-connery-wallpapers-27330-7601590.jpg\";i:3;s:13:\"-300x180.jpeg\";i:4;s:26:\"azat-pink-ad-600x600-1.png\";i:6;s:36:\"GettyImages_1216112779.0-300x180.jpg\";}'),(60107,2190,'litespeed_vpi_list_mobile','a:1:{i:0;s:37:\"logo-grecca-by-mia-horizontal-web.png\";}'),(60108,1501,'litespeed_vpi_list_mobile','a:2:{i:0;s:4:\"2Q==\";i:1;s:3:\"9k=\";}'),(60109,3068,'litespeed_vpi_list_mobile','a:4:{i:0;s:29:\"Reempetstorelogo-2-200x25.png\";i:2;s:40:\"Trixie-Cat-Litter-Tray-40398-350x350.jpg\";i:3;s:42:\"Trixie-Cat-Litter-Tray-40398-1-350x350.jpg\";i:5;s:42:\"Trixie-Cat-Litter-Tray-40398-2-350x350.jpg\";}'),(60110,83,'litespeed_vpi_list_mobile','a:1:{i:0;s:12:\"empty result\";}'),(60111,2641,'litespeed_vpi_list_mobile','a:2:{i:0;s:16:\"peaches-logo.svg\";i:1;s:11:\"24_file.png\";}'),(60112,1747,'litespeed_vpi_list_mobile','a:2:{i:0;s:31:\"CCTVPinoy-logo-white-font-1.png\";i:1;s:21:\"EAP265-HD-510x364.jpg\";}'),(60113,2598,'litespeed_vpi_list_mobile','a:1:{i:0;s:63:\"gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";}'),(60114,3049,'litespeed_vpi_list_mobile','a:2:{i:0;s:21:\"azat-tv-logo-pink.png\";i:2;s:18:\"5c103099c2a92.jpeg\";}'),(60115,1368,'litespeed_vpi_list_mobile','a:1:{i:0;s:19:\"BE-BY-AFRONEXTV.png\";}'),(60116,1301,'litespeed_vpi_list_mobile','a:1:{i:0;s:8:\"uspb.png\";}'),(60117,1332,'litespeed_vpi_list_mobile','a:2:{i:0;s:76:\"Webo-Verlichting-Beuningen-Nijmegen-lampen-online-verlichtingszaak-160-w.png\";i:1;s:27:\"2011-55-55-EV-K-700x700.png\";}'),(60118,2470,'litespeed_vpi_list','a:1:{i:0;s:12:\"empty result\";}'),(60119,711,'litespeed_vpi_list','a:1:{i:0;s:12:\"empty result\";}'),(60120,719,'litespeed_vpi_list','a:1:{i:0;s:12:\"empty result\";}')
the sql file contains loads as per above example BUT the site itself doesnt have such images, doesnt use them at all hence the confusion ….
Forum: Themes and Templates
In reply to: [Astra] Child Theme Template Overides NOT Working@norimushi sure. this is what worked for us:
add_action( 'wp', 'remove_footer_copyright_action' ); // We have removed default hook function function remove_footer_copyright_action() { remove_action( 'astra_footer_copyright', array( Astra_Builder_Footer::get_instance(), 'footer_copyright' ), 10 ); } add_action( 'astra_footer_copyright', 'add_content_before_after' ); //Added new function in the hook. function add_content_before_after() { $theme_author = astra_get_theme_author_details(); $content = astra_get_option( 'footer-copyright-editor' ); if ( $content || is_customize_preview() ) { echo '<div class="ast-footer-copyright">ADD YOUR CODE HERE<br>'; $content = str_replace( '[copyright]', '©', $content ); $content = str_replace( '[current_year]', gmdate( 'Y' ), $content ); $content = str_replace( '[site_title]', get_bloginfo( 'name' ), $content ); $content = str_replace( '[theme_author]', '<a href=" ' . esc_url( $theme_author['theme_author_url'] ) . '" rel="nofollow noopener" target="_blank">' . $theme_author['theme_name'] . '</a>', $content ); echo do_shortcode( wpautop( $content ) ); echo '</div>'; }}
Dont forget to replace where it says ADD YOUR CODE HERE with whatever you require to be output on the frontend.
Stick that into the codesnippets plgin (best way) and save/enable and you should be good to go!
Forum: Plugins
In reply to: [Code Snippets] Duplicate Queries@bungeshea thanks. look forward to the upadte ??
Forum: Themes and Templates
In reply to: [Astra] Child Theme Template Overides NOT Working@bsfherman so reached out to support… and SUPER got a fix after going back and forth. Stella just the fix we required. Much appreciated. Will leave a review too as we are happy ??
Forum: Themes and Templates
In reply to: [Astra] Child Theme Template Overides NOT WorkingHey Herman,
> sorry for the delay.
Yes we have been waiting a bit of time ??Sure here is the code:
<?php /** * Astra Builder Loader. * * @package astra-builder */ // No direct access, please. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Builder_Footer' ) ) { /** * Class Astra_Builder_Footer. */ final class Astra_Builder_Footer { /** * Member Variable * * @var instance */ private static $instance = null; /** * Dynamic Methods. * * @var dynamic methods */ private static $methods = array(); /** * Initiator */ public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { if ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) { $this->remove_existing_actions(); // Footer Builder. add_action( 'astra_footer', array( $this, 'footer_markup' ), 10 ); add_action( 'astra_above_footer', array( $this, 'above_footer' ), 10 ); add_action( 'astra_primary_footer', array( $this, 'primary_footer' ), 10 ); add_action( 'astra_below_footer', array( $this, 'below_footer' ), 10 ); add_action( 'astra_render_footer_column', array( $this, 'render_column' ), 10, 2 ); // Core Components. add_action( 'astra_footer_copyright', array( $this, 'footer_copyright' ), 10 ); for ( $index = 1; $index <= Astra_Builder_Helper::$component_limit; $index++ ) { // Buttons. add_action( 'astra_footer_button_' . $index, array( $this, 'button_' . $index ) ); self::$methods[] = 'button_' . $index; // Htmls. add_action( 'astra_footer_html_' . $index, array( $this, 'footer_html_' . $index ) ); self::$methods[] = 'footer_html_' . $index; // Social Icons. add_action( 'astra_footer_social_' . $index, array( $this, 'footer_social_' . $index ) ); self::$methods[] = 'footer_social_' . $index; } // Navigation menu. add_action( 'astra_footer_menu', array( $this, 'footer_menu' ) ); } } /** * Callback when method not exists. * * @param string $func function name. * @param array $params function parameters. */ public function __call( $func, $params ) { if ( in_array( $func, self::$methods, true ) ) { if ( 0 === strpos( $func, 'footer_html_' ) ) { Astra_Builder_UI_Controller::render_html_markup( str_replace( '_', '-', $func ) ); } elseif ( 0 === strpos( $func, 'button_' ) ) { $index = (int) substr( $func, strrpos( $func, '_' ) + 1 ); if ( $index ) { Astra_Builder_UI_Controller::render_button( $index, 'footer' ); } } elseif ( 0 === strpos( $func, 'footer_social_' ) ) { $index = (int) substr( $func, strrpos( $func, '_' ) + 1 ); if ( $index ) { Astra_Builder_UI_Controller::render_social_icon( $index, 'footer' ); } } } } /** * Remove existing Footer to load Footer Builder. * * @since 3.0.0 * @return void */ public function remove_existing_actions() { remove_action( 'astra_footer_content_top', 'astra_footer_content_top' ); remove_action( 'astra_footer_content', 'astra_advanced_footer_markup', 1 ); remove_action( 'astra_footer_content', 'astra_footer_small_footer_template', 5 ); remove_action( 'astra_footer_content_bottom', 'astra_footer_content_bottom' ); remove_action( 'astra_footer', 'astra_footer_markup' ); } /** * Astra Footer Markup. */ public function footer_markup() { $display_footer = get_post_meta( get_the_ID(), 'footer-sml-layout', true ); $display_footer = apply_filters( 'astra_footer_bar_display', $display_footer ); if ( 'disabled' !== $display_footer ) { get_template_part( 'template-parts/footer/builder/desktop-builder-layout' ); } } /** * Call above footer UI. */ public function above_footer() { if ( astra_wp_version_compare( '5.4.99', '>=' ) ) { get_template_part( 'template-parts/footer/builder/footer', 'row', array( 'row' => 'above', ) ); } else { set_query_var( 'row', 'above' ); get_template_part( 'template-parts/footer/builder/footer', 'row' ); } } /** * Call primary footer UI. */ public function primary_footer() { if ( astra_wp_version_compare( '5.4.99', '>=' ) ) { get_template_part( 'template-parts/footer/builder/footer', 'row', array( 'row' => 'primary', ) ); } else { set_query_var( 'row', 'primary' ); get_template_part( 'template-parts/footer/builder/footer', 'row' ); } } /** * Call below footer UI. */ public function below_footer() { if ( astra_wp_version_compare( '5.4.99', '>=' ) ) { get_template_part( 'template-parts/footer/builder/footer', 'row', array( 'row' => 'below', ) ); } else { set_query_var( 'row', 'below' ); get_template_part( 'template-parts/footer/builder/footer', 'row' ); } } /** * Call component footer UI. * * @param string $row row. * @param string $column column. */ public function render_column( $row, $column ) { Astra_Builder_Helper::render_builder_markup( $row, $column, 'desktop', 'footer' ); } /** * Render Footer Copyright Markup! */ public function footer_copyright() { $theme_author = astra_get_theme_author_details(); $content = astra_get_option( 'footer-copyright-editor' ); if ( $content || is_customize_preview() ) { echo '<div class="ast-footer-copyright"><p class="vdinfo">Website made by <a href=" https://www.WEBSITEADDRESS.com/" rel="noopener" target="_blank">DEVELOPER NAME</a></p>'; $content = str_replace( '[copyright]', '©', $content ); $content = str_replace( '[current_year]', gmdate( 'Y' ), $content ); $content = str_replace( '[site_title]', get_bloginfo( 'name' ), $content ); $content = str_replace( '[theme_author]', '<a href="' . esc_url( $theme_author['theme_author_url'] ) . '" rel="nofollow noopener" target="_blank">' . $theme_author['theme_name'] . '</a>', $content ); echo do_shortcode( wpautop( $content ) ); echo '</div>'; } } /** * Render HTML 1. */ public function footer_html_1() { Astra_Builder_UI_Controller::render_html_markup( 'footer-html-1' ); } /** * Render HTML 2. */ public function footer_html_2() { Astra_Builder_UI_Controller::render_html_markup( 'footer-html-2' ); } /** * Render HTML 3. */ public function footer_html_3() { Astra_Builder_UI_Controller::render_html_markup( 'footer-html-3' ); } /** * Render HTML 4. */ public function footer_html_4() { Astra_Builder_UI_Controller::render_html_markup( 'footer-html-4' ); } /** * Render Menu. */ public function footer_menu() { Astra_Footer_Menu_Component::menu_markup(); } } /** * Prepare if class 'Astra_Builder_Footer' exist. * Kicking this off by calling 'get_instance()' method */ Astra_Builder_Footer::get_instance(); }
If you look at line 232 that is where my insert is. Simple nothing major BUT it keeps the positioning on the front end. I cannot seem to accomplish this using hooks (only examples you have are for header) and even after messing around the best I can get is before footer. No good.
Should be able to override file via child theme? otherwise child theme is pointless AND no point doing change on parent theme as that will get over-ridden via an update ??
Hope you wont forget and reply quickly this time…
- This reply was modified 2 years, 4 months ago by UmbrellaWeb. Reason: formatting issue fixed
Forum: Themes and Templates
In reply to: [Astra] Child Theme Template Overides NOT Working@bsfherman We are aware of the hooks that can be used BUT the positon we require for most projects is within a specific footer area. Otherwise the styling just looks off and very poor.
hence why we tried to use the child theme template instead.
You havent answered that question. Why is it broken?
Does child theme overides not work with astra theme????Forum: Themes and Templates
In reply to: [Astra] Child Theme Template Overides NOT Working@bsfherman thanks for the reply.
Trying to get custom text into the footer (i.e. website was developed by…) WITHOUT having to reply on the customiser setting. Basically dont want a client to remove the text in any way.
Tried to duplicate the: class-astra-builder-footer.php and add to the child theme using the same folder strucure but it doesnt work…
hope that makes sense and that you can help to achieve?
Forum: Plugins
In reply to: [Code Snippets] Duplicate Queries@bungeshea yes, we are using it for some site i.e those that have it enabled on the web host.
However many (client sites) dont use great hosting so its an uphill battle to get the sites optimised hence why we look at everything possible to squeeze that extra little bit of performance out…
Ideally getting sites to better hosting fixes (or at the very least improves the performance) but getting clients to do this can sometimes prove to be an uphill battle… if you get what I mean…
Forum: Plugins
In reply to: [Code Snippets] Duplicate Queries@bungeshea thank you for the update.
That would be great to squeeze some additional performance out of your plugin ??
@webtoffee Thanks for the update.
Works as expected/required now. Much appreciated ??
@jsmoriss thank you and sorry for any iconvenience and any upset caused. Wasnt clear to me anyway which you have now clarified. Thank you.
@jsmoriss is that for this standard wpsso plugin or the premium version? and is it only for blog posts where the article schema is used?
As disabling the slack option in rankmath removes those ‘duplicate’ meta tags BUT wpsso desnt seem to be adding them in on any pages… Hence why I posted the message initially…
Forum: Plugins
In reply to: [WPSSO Core - Complete and Optimized Structured Data SEO] Meta Generator Tag@jsmoriss thanks for the update.
Yes, please when you have the time add that constant…