Share Ajax Page

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #10044514
    pernad01
    Participant

    I’m using index-one-page.html for my website. It uses Ajax popup pages to display the portfolio (portfolio-ajax-project.html). I can’t use social media code generators for my share buttons because there is not a direct url to the portfolio pages. Can you please share the code to make it work?

    Thanks for your help!


    #10044515
    Support
    Keymaster
    This reply has been marked as private.
    #10044517
    pernad01
    Participant

    Thank you, but it’s not working. I put in your recommended code and when I use the link to https://www.pernadesign.com/#TechPG, it takes me to the start of the projects carousel, not the actual modal page. Also, when I use the links for the other projects, they don’t work at all. Please advise.

    Thank you!


    #10044522
    Support
    Keymaster

    Hi, sorry, please update the JS to:

    $(document).ready(function(){
    	if ( window.location.hash ) {
    		$(window.location.hash).click();
    	}
    });

    Clear cache and try again. It should open the modal automatically


    #10044528
    pernad01
    Participant

    Hi, sorry this is not working either. I’m getting the same results as before. What do you recommend?


    #10044531
    Support
    Keymaster
    This reply has been marked as private.
    #10044536
    pernad01
    Participant

    I used your code but it whacks out the page. Dreamweaver finds an error on this line: var pluginOptions = theme.fn.getOptions($this.data(‘plugin-options’));

    ERROR: ‘Theme’ is not defined. [no-undef]

    Thanks for your help!


    #10044538
    Support
    Keymaster

    Hi, that code is correct, can you please try to upload that to custom.js in your server and try again? Not sure why dreamweaver is showing that error, I use VS Code and it’s working here in my test.


    #10044543
    pernad01
    Participant

    I uploaded the custom.js file with your code to my server. After entering the URL plus the hashtag and ID name, it still only goes to the portfolio carousel on the page. It does not open the popup relating the the ID name. Could you take a look at my site and tell me what I’m doing wrong?

    Thank you so much!


    #10044544
    Support
    Keymaster
    This reply has been marked as private.
    #10044546
    pernad01
    Participant

    Hi, I changed the loop to false and replaced the js code in the custom.js file. Using the url plus hash and ID name, it goes to the portfolio carousel but doesn’t open the popup. If I refresh the page with the same url string, it goes to the corresponding (unstyled – no css) web page and does not present it as a popup.


    #10044547
    Support
    Keymaster
    This reply has been marked as private.
    #10044548
    pernad01
    Participant
    This reply has been marked as private.
    #10044549
    pernad01
    Participant
    This reply has been marked as private.
    #10044551
    Support
    Keymaster
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 total)

This topic is marked as "RESOLVED" and can not rceive new replies.