Post Views AMP

Posted in: Newsmag
Post count: 142

Hi,

I would like the code to add to functions.php of the theme Newsmag file to view the visits of my posts AMP.

Waiting for your news about, good job

Post count: 9544

Tagdiv would need to give us a shortcode for the hit counter, which we could then add to the normal filter function you shoukd already have to add shortcode to header or footer.

Post count: 6535

Hi


@orlando
please check this topic where my colleague Lucian provided a possible implementation: https://forum.tagdiv.com/topic/how-to-hook-hit-counter-into-amp-header/

Thanks!

Post count: 142

Hi,

you can write better these steps because I could not understand.

make a pass at a time, thanks

Post count: 6535

HI

Basicaly you just need to add this code functions.php file: http://pastebin.com/dNyJK1xchttp://screencast.com/t/YOF1P3SQh The ode was tested on Newspaper theme but the implementation is similar for Newsmag and the code should work the same.

Thanks!

Post count: 9544

Thanks. Reminded me I actually needed to do this, too (doh) 🙂

For those not getting it — the pastebin code needs to be added to the main theme functions.php file, typically at the bottom.

Post count: 142

Hi,

I implemented the code in your functions.php file,

but it does not work!!!

How can we do???

Post count: 6535

Hi

The method provided by Lucian worked fine at that time and it also should work now as the code wasn’t changed. I can’t say for sure why the code is not working on your side as the AMP plugin was not tested to work with Newsmag theme and it may be required an additional code.
If you still can’t mange to solve this and you really want to use this plugin my advice is to look for someone who can help you with you with plugin implementation as we can’t offer customization services at the moment.

Thanks for you understanding!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newsmag’ is closed to new topics and replies.