brandnav_after_nav is the hook. This is what determines where your desired content is placed. It's pretty easy to understand since hooks are named accordingly. In this case, brandnav_after_nav means that the content you place in this hook will be placed after the brand navigation. Does that make sense?
brandnav_icons is the name given to the content you want to add. You can name it however you'd like, but it's best to give it a descriptive name so that you know what it's for. This name is supposed to go in two places (as shown in the code above).
I suppose that you can try something like
Add the following code to Dashboard > Plugins > Editor in the PageLines Customize plugin, inside the functions.php file:
add_action('pagelines_loop_after_post_content', 'google_leaderboard_ad');
// function name
function google_leaderboard_ad(){ ?> <div class="leaderboard"> ADD YOUR Custom Ad Code here </div> <?php }
// end function
I would like to add Google AdSense to all my Single posts between the text and the comments, but I do not know where to put the code? And how do I avoid this code to be overwritten every time Pagelines is updated?
My website is www.christianmolk.se and I do not use any Child theme, just the standard Pagelines Framework.
Yes, I see the Action Map button on your picture but it is simply not there on my Wordpress admin bar. This is very strange since I have both installed and activated the plugin.
brandnav_after_nav is the hook. This is what determines where your desired content is placed. It's pretty easy to understand since hooks are named accordingly. In this case, brandnav_after_nav means that the content you place in this hook will be placed after the brand navigation. Does that make sense?
brandnav_icons is the name given to the content you want to add. You can name it however you'd like, but it's best to give it a descriptive name so that you know what it's for. This name is supposed to go in two places (as shown in the code above).
I suppose that you can try something like
Add the following code to Dashboard > Plugins > Editor in the PageLines Customize plugin, inside the functions.php file:
I used the code you wrote and it worked almost perfectly! The only issue I have now is how to not show my Google Ads on the front page. Is there any more code to ad to make this happen?