Archived
This topic is now archived and is closed to further replies.

Recommended Posts
-
Similar Content
-
By art23130+
We had a very nice shortcodes library and hooker in the previous version of the platform. But in the version 5 they are missing.
So are you going to improve it again in future or no they are not supported anymore?
and one more question, what do you suggest for sharing bar which we had in DMS2 ?
Thanks for your effort
-
By Le Chef Est Une Femme+
Hey everyone
I am very sorry if this question has a "deja vu" taste but I have been looking for more than 2 hours a way to add a phone number in the top right corner of my header website.
Before asking that, I have read many of the questions related to that subject, from hooks and action map to function.php and hooker plugin but I am very lost. Plus many links kindly given by some of you are now 404 pages
Is there anyone willing to help me find the easiest way to add this number please ?
In advance, thank you
www.upgrad.paris
-
By dreamsight
We add phone number to the top right of sites using hooker (example http://hub.theasap.org.uk/) but it's not responsive. Is there a better way to add here, which would be responsive?
-
By ipitts+
To whom it may concern:
I am developing a website for a client using the PageLines DMS2 theme and am having an issue getting a custom jQuery function to work using your Hooker plugin. I have used Hooker to add HTML and PHP to the wp_head hook successfully, so I do not understand where the issue exists – I am using the pageslines_after_footer hook to place my jQuery at the bottom of the document (alongside the many other scripts that come with the theme and various other plugins). I checked the document HEAD section and know that jQuery is enabled, and after enabling my custom hook saw that my script was loaded into the footer (as hoped for), but it is not working.
I am trying to make a simple, custom back-to-top button that appears after a user has scrolled the page a certain distance, as calculated in jQuery. After an hour, I decided to troubleshoot my script on a test WordPress site on my localhost (using jQuery version 1.11.3) and it works exactly as intended. I would like to avoid writing any code within the DMS2 theme files if possible.
I have also tried the wp_head, wp_footer and pagelines_before_footer hooks to no avail. Am I using the wrong hook(s)? What else can I try?
My code:
HTML
<a href="#"><div id="bttb-cont" style="">Hello</div></a>
jQuery (within the Hooker plugin)
<script type="text/javascript">
$(document).scroll(function() {
var windowHeight = $(window).height() / 7;
var scroll = $(window).scrollTop();
if (scroll > windowHeight) {
$('#bttb-cont').fadeIn();
} else {
$('#bttb-cont').fadeOut();
};
});
</script>
As you can see, it is a very simple script.. Any help on this matter will be greatly appreciated.
-
By quinntinm
Hello.
I need to display a shortcode in the footer of my site and have been told by the support admin to add a function in my functions.php file or use hooker.
I installed hooker and i have no idea how to proceed.
I went to the hooks editor and am faced with a list in a dropdown menu....
um...
So where to from here.
so this is what i need to do:
I have created 3 custom fields using advanced custom fields.
I need to display that data in a PLNEXTBOX in the footer of the site so that the info is displayed on every page of the site in the footer.
How do i use hooker to do this?
Thank you.
-