Jonas Bjørn Pedersen
Forum Replies Created
-
Again, thank you so much for your help.
You can have access to the site. I will send a mail with the login details to the staging site.
I have already set a real page ID. I have set “Enable Express Checkout for single products” to “Some” so you might have to go to the checkout to find the Mobile Pay express button.I have the staging site up and running. I just quickly tested and the same problem seems to occour on the staging site.
I will set up a staging site and get back to you. Though I will say that we use a child theme (of GeneratePress), so mostly it break the site changing the theme – at least visually.
I have a local development version, fully up to date. But since it is local, it does not have SSL certificate. Will the be a problem for the MobilePay integration? I think I saw somewhere that SSL is required for MobilePay.
If required I can setup a staging site with SSL.Thank you for quick response.
The errors when clicking the express button still persist after creating the new blank page, and using that for the “Use a real page ID for the special Vipps MobilePay pages – neccessary for some themes” setting.
For the button appearing when it should not, it did work setting it to “Some” instead of “No Products”.UPDATE:
It seems that the Goggle Pay express option not showing, was unrelated and has now been fixedHi @mrclayton,
Thank you for the response and the code snippet. Unfurtunatly for this project it will not be possible to use the shortcode pages. Otherwise that would also have been my go to.
I will definitly try this tomorrow.@anastas10s I will let you know what I find out. However just looking at the response from @shameemreza makes me think that the problem might be with our setup of google tag manager.
@dlim_vernier, I’m kind of relived to not be the only one struggling with this.
@shameemreza thank you for that explaination, I will look into this. The site is using Goolge Tag Manager that is coupled together with Google Analytics.Forum: Themes and Templates
In reply to: [GeneratePress] Social icons on right widget sidebar not alignedI just had the same issue. I resolved it by setting padding-bottom:0. For me margin-bottom didn’t work. I used the selector @diggeddy suggested and added it to the additional css section
Forum: Plugins
In reply to: [PHP Code Widget] Making my own plug-inOh I misread your first response.
So say that I have the following code in the widget:
<?php bloginfo('name'); ?> - © <?php echo date('Y'); ?>Is this the code to put in the plugin?
- This reply was modified 8 years, 3 months ago by Jonas Bjørn Pedersen.
Forum: Plugins
In reply to: [PHP Code Widget] Making my own plug-inThank you for the answer, however I’m still not quite sure which of the code I should use. Is it the only part, to use? This is the code between the lines of
echo $before_widget;andecho after_widget;. In the custom html widget I still can’t use the <?php ?> tags. Sorry for all the questions, but I’m still new to this.if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ob_start(); eval('?>'.$text); $text = ob_get_contents(); ob_end_clean(); ?> <div class="execphpwidget"><?php echo $instance['filter'] ? wpautop($text) : $text; ?></div> <?phpEDIT: Figured out how to use the php tags (<php> and </php>, but the widget reads it like normal text). Can you help with this?
- This reply was modified 8 years, 3 months ago by Jonas Bjørn Pedersen.
Forum: Plugins
In reply to: [Compliance by Hu-manity.co] Cookie notice and MonsterInsightsI realize this might be the wrong forum to post the answer since most of it is related to the MonsterInsights plugin, but since the thread already exists this seemed the easiest thing to do. Feel free to delete the post, if you find it irrelevant.
Since I had trouble finding a solution online I will tell you what I did, to solve this. However I kinda did it in another way, where the cookies will be created only if the user accepts cookies. Pressing “No” or not doing anything the analytics cookies will not exist.
You need to access the source code for MonsterInsights. In wordpress achieve this by navigating to Plugins -> Editor. Then set the plugin to edit as the MonsterInsights plugin and press select. In “Includes -> Frontend -> Tracking” there is a file called class-tracking-analytics.php open it and find the line starting with
(function(i,s,o,g,r,a,m)[around line 200 for me]. All you need to do is to insert this code on the line above the function<?php if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { ?>and this on the line below the function<?php } ?>Forum: Plugins
In reply to: [Compliance by Hu-manity.co] Cookie notice and MonsterInsightsAnyone able to help?