Support › Forums › Support (Legacy) › Script for Readspeaker
Tagged: Atlanta
-
AuthorPosts
-
12/12/2016 at 9:01 #2457
Hello,
i have to put a code in an file but i dont now which one becuase the structure is different from the standard themes from WordPress.
Thats what i have to add. Could you help me out where to put the Step 2?
Thank you very much.
Shavua tov Nico
Step 1. Adding the JavaScript;
You would need to open your theme’s header.php ( ../wp-content/themes/THEME_NAME/ ) file and paste the below JavaScript link before </head> in the code;<script type=”text/javascript” src=”http://f1-eu.readspeaker.com/script/[CUSTOMER_ID]/ReadSpeaker.js?pids=embhl”></script>
Step 2. Adding the Listen button code to your template files;
For this step, you would want to have a look at the file “content-page.php” (this based on the latest default WordPress theme Twentyfifteen), if you use a custom template, then you might need to look into a different file.I would recommend placing the below block inside the <article> tag in the page layout;
<div id=”readspeaker_button1″ class=”rs_skip rsbtn rs_preserve”>
<span class=”rsbtn_left rsimg rspart”><span class=”rsbtn_text”><span>[LISTEN]</span></span></span>
<span class=”rsbtn_right rsimg rsplay rspart”></span>
</div>Step 3. Designating a reading area in the page.
Finally, you would need to place a reading area, <div id=”rs_read_this”> and </div> around your main content element, like this;<div id=”rs_read_this”>
[…]
</div>Where […] is placeholder for the rest of the text inside the main content element in your site.
14/12/2016 at 15:22 #2461Hi,
Unfortunately we can’t give assistance with custom code.15/12/2016 at 6:05 #2467Hello Boaz,
1. i payed a lot of money for all Templates.
2. i dont know if you have read the question right?I need to know wich file is the content-page.php file in the Atlanta Template that i can insert the code. i dont wanted that you do that for me!
Thank you
Nico15/12/2016 at 13:07 #2474Hi Nico,
I apologize for my hasty response.
The file you are looking for is
loop/page.php
.
Please make sure you are using a child-theme for any code modifications.Boaz
-
AuthorPosts
The forum ‘Support (Legacy)’ is closed to new topics and replies.