Force ad placement in Google AdSense plugin - wordpress

Google AdSense plugin for WordPress (previously known as the Google Publisher Plugin) is showing me the placement for the "after the last paragraph" option inside the last comment on my blog.
Is there any way to tell the plugin where is the correct last paragraph <p> on the blog content?
I've tried Manually insert placement code for the AdSense Plugin for WordPress, but the plugin is not showing me the placement marker in the location where I added the code.
I know how to insert AdSense code manually, but I want to use the plugin in order to automatically add ad blocks with the same structure on every post.

Related

Google Analytics 4 isn't working wirh custom Wordpress' theme's pages

I made a custom non-editable Wordpress theme with custom pages and posts. I followed the directions Google gives to put Analytics 4 into the last line before the head closing tag. It does recognize when a user is in the page in realtime but always logs it as if the user stayed in the homepage. Regardless of whichever page the user is on, the analytics for page title and screen name only logs the homepage and never changes. I've tried with switching around the position of the code and some plugins too, it doesn't change anything. What am i failing to check or what alternatives do i have?
The script is added to the header, and the header is added dynamically with get_header(); on all the pages templates. Could it be a conflict with how the custom pages are created? The functions are managed by a snippets plugin and created with a generator.
Here's the repository if u need it
https://github.com/DairaF/wp-identidades/

Free, editable calendar for Wordpress site that using Elementor?

I am updating a website that was built (not by me) in Wordpress using Elementor. I'm trying to add a calendar that can list basic events and provide links to them. I found the plugin called "Wordpress Calendar" and have been able to add one of those to the draft of the site, but whenever I right-click on the calendar and choose "edit calendar," a bar pops up on the left hand side of the screen telling me about "user restrictions." So I can't actually add any events to the calendar. I think I have full access to edit the site. Is there a way to bypass Elementor and create the calendar in Wordpress code?
Is there a free way to add an editable calendar? I see this but I'm not sure how to integrate it into the Elementor site: https://wordpress.org/plugins/the-events-calendar/
Sorry, I'm new to WP.
You can use this solution:
1- Install that plugin you have found https://wordpress.org/plugins/the-events-calendar/
2- Visit this page https://theeventscalendar.com/knowledgebase/k/embedding-calendar-views-with-the-tribe_events-shortcode/ and get the shortcode you need. The shortcode will display the calendar you want on any page you place the shortcode in.
3- Insert the shortcode within Elementor builder: just add a new "Shortcode" element and insert the shortcode you need into it.
Note: the calendar can only be edited by you in the backend.

Find Google adsense tags in a webpage

I am trying to manage google Adsense using the official plugin. the plugin rejects adding any extra ads to the page since it thinks there are more than three ads in the page. Actually, I am having only two ads there one in the header which appears on all pages and one on a sidebar widget.
Is there any way to find if there really 3 tags?
the issue is on product pages like this http://safetyandsecuritycameras.com/wp-admin/options-general.php
the home page http://safetyandsecuritycameras.com/ is ok
You could try out WP QUADS a WordPress plugin for AdSense integration. It has a function to count and highlight the ads on a page to make sure that no more than the allowed ads are used.
It also allows you to limit the ads on your WordPress site to a maximum:
Details of the plugin can be found on http://wpquads.com/
You find the free version of the plugin on https://wordpress.org/plugins/quick-adsense-reloaded/
You can use the default wordpress text widget for adsense. You can try that.

How to add Google Custom Search Engine in navigation bar of Twenty thirteen theme of wordpress

I added Google Custom Search Engine in my twenty thirteen wordpress theme using the Google CSE plugin.I manage to add the google search box in the side bar but I want to place it in the navigation bar.How do I do it? and also the search box design does not appear as it was configured to in my theme.Please help I need to finish the design fast.
Ok so from what i understand you used a plugin to add google search bar to your page but the plugin only allowed you to add it to the sidebar... In your header are widgets enabled? I would enable widgets and add the google search widget there.
Ok,I figured it out how to do it.I created a page searchform.php using the code of Google custom search bar.Then I added <?php include "searchform.php" ?> in the header.php file ,using CSS I was able to placed it in the appropriate place.

Google Analytics and WordPress -- I can't find the right place to paste the code into

I need to paste some Google Analytics code into my WordPress site. It's the latest WordPress theme, with some modifications.
I would like the Analytics code to track every page on the WordPress site.
Where do I paste the Analytics code?
I was told to do the following to find the place to paste the Analytics code:
--- In WordPress Admin, click 'Appearance'.
--- Click 'Editor'.
--- Click on "footer.php". Scroll to the very bottom of the text area. Find the < /body? line and right above it, add/paste your Analytics code.
But when I click 'Editor', I don't see "footer.php"....
This is what I see when I'm logged into WordPress Admin: https://skitch.com/richardclunan/fxsmg/dreamweaver
And this is the site that I want to add Google Analytics code to: Richard Clunan -- Copywriter
It is much easier to just download the "Google Analytics for WordPress" plugin.
You can search for it from your dashboard "plugins" section and it updates all your new pages / post pages automatically. Otherwise you're stuck pasting code into each new page you make.
You are editing a child theme, it does not have all the files, only the files that are different from the parent. On the top right side switch to the parent theme called 'Twenty Eleven' in this case. Edit its footer.php
However, word of caution, if you update the theme through wordpress, the google analytics code would be gone. Possible work arounds for are:
Use a plugin as DFTR suggests
Copy the Twenty Eleven footer.php to Twenty Eleven child directory on your server and edit the child theme footer from wordpress.
To add Google Analytics to your WordPress site, you can go with these simple steps are as follows:
Enter your WordPress login information
Select Appearance
Theme Editor. After that
Click the Theme Header (header.php) file, which is located on the right side under the Theme Files section.
Paste the tracking code you just copied from your Analytics profile before the closing tag.
Then click Update File.

Resources