-
Author
-
March 13, 2016 at 22:59 #110237lowkeytraxxParticipant
Im trying to add something to this line of code but I cant find the file that it is located in.. Please help
<div class=”template-page col-sm-9 tpl-right”>
<div class=”wrap-content”></div>March 14, 2016 at 14:48 #110325rikbutterflyskullParticipantwrap-content is the main container, the same container that show pages content, post content and is a core part of code. There is no reason to edit wrap part and risk to break the whole site, cause all you create with pages/post edit/visual composer are inside wrap-content
March 14, 2016 at 16:19 #110367sharmstrModeratorIts located in /page-parts/general-before-wrap.php. There is a hook that will allow you to inject content there called kleo_before_main_content. What are you looking to do?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 14, 2016 at 21:46 #110523lowkeytraxxParticipantI just want to place a add before the content
March 15, 2016 at 16:18 #110727sharmstrModeratorIn your child theme’s functions.php file, use this code
COPY CODEadd_action('kleo_before_main_content', 'inject_adsense', 10); function inject_adsense() { //your adsense code here }
Here is a list of hooks: https://archived.seventhqueen.com/documentation/kleo#hooks
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 16, 2016 at 03:19 #110903sharmstrModeratorThe inject code does work. So perhaps you are not inputting your adsense code correctly. See if I change the code I gave you to inject a “Hello, World” message, it does display on the site.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files.March 17, 2016 at 04:12 #111159sharmstrModeratorLooks like you’ve got it sorted now.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
You must be logged in to reply to this topic.