-
AuthorPosts
-
January 24, 2017 at 2:37 pm #737752
Hi there,
we recently started using an on-page text to speech plugin (http://www.readspeaker.com/) which provides a WordPress Plugin and works perfectly fine with current Enfold.
But…
The player for the reading functionality is always inserted on the top of the page, below the menu. I looked it up in the plugin files and it seems the insert is done on the hook wp_head. This doesn’t always makes sense. The plugin allows the player to be added mulitple times on one page, thats why I want to add the player at the top of each colored section Is that possible, is there a hook for that?
Regards Ben
- This topic was modified 7 years, 10 months ago by Oberlinhaus.
January 27, 2017 at 11:28 pm #739637Hey Oberlinhaus,
can you provide a precise link where we can inspect the elements in question and a screenshot showing clearly where we should look at please? use imgur.com or dropbox.
Best regards,
AndyJanuary 30, 2017 at 12:48 pm #740157Hi Andy,
I uploaded the WP Plugin PHP file and a screenshot where it puts the player. The player is put always at the top of the site. I want that the player is put at the start of each colored section, only reading, whats in that section.
Readspeaker gives a way to implement that manually but there is a reason I am using a CMS :)
How to implement Readspeaker into body:
<div id="readspeaker_button1" class="rs_skip rsbtn rs_preserve"> <a rel="nofollow" title="Um den Text anzuhören, verwenden Sie bitte ReadSpeaker" href="//app-eu.readspeaker.com/cgi-bin/rsent?customerid=9152&lang=de_de&readid=[READID]&url=[ENCODED_URL]"> <span class="rsbtn_left rsimg rspart"><span class="rsbtn_text"><span>Vorlesen</span></span></span> <span class="rsbtn_right rsimg rsplay rspart"></span> </a> </div>
[READID]: Insert DIV ID of content to read e.g. “readspeaker_button1
- This reply was modified 7 years, 10 months ago by Oberlinhaus.
February 1, 2017 at 12:51 am #740943Hi,
not sure what you want to do, it’s quite confusing to me how you explain everything. But as far as I understand it you could create WordPress’ Templates: http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/
Best regards,
AndyFebruary 1, 2017 at 12:25 pm #741170Hi Chris,
okay I try to clairfy:
the aim is to implement a reading-player at the start of each colored section. I assume to use multiple sections on each page.
Readspeaker gives 2 ways of implementation:
1. Plugin (see plugin file)
2. Manually (see html above)The way I see it is that plugin automates what i usally would to manually.
Manual method is to give each colored section an ID, then add the player code by hand (see post above) and change the READID to the ID of the colored section box. I have to do it for each page for multiple sections.
The plugin – automated way – to me means to modify the plugin.php or the functions.php so that it does the following when a colored sections is used somewhere:
- Give section an ID
- Insert the player code using the ID
As far as I understand it is what I need a modification of the hook when sections are inserted into the main content?
- This reply was modified 7 years, 10 months ago by Oberlinhaus.
February 3, 2017 at 5:10 pm #742476Hi,
Unfortunately it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if its really important for you to get this done, you can always hire a freelancer to do the job for you :). You can find one here: http://kriesi.at/contact/customization
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.