WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
[resolved] Content open when go to page. (12 posts)

  1. Thomas Morley
    Member
    Posted 7 months ago #

    Hi there,

    I have put the following code... [expand title="Please read full article" excerpt="Educating Afghanistan" excerpttag="h2"] content [/expand]

    On the following page http://thomaswmorley.com/lens_portfolio/educating-afghanistan/

    It works fine but the only problem is that when you go to this page the content is open showing it all. I need it closed when you go to this page so when you click on it, it opens up.

    I am a novice so be kind

    Thomas

    http://wordpress.org/plugins/jquery-collapse-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 7 months ago #

    Thomas, It looks like you have changed something in the last 19mins.
    When I visited the link you provided, there was a collapse element at the bottom of your content, and the target content was hidden as you wanted. Clicking on open, expanded the content below.

    Are you still having an issue, or did you get this resolved on your own? Fear not, we are very novice friendly.

  3. Thomas Morley
    Member
    Posted 7 months ago #

    Hi there, Thanks for the reply, I have put it back to how it was, just having a fiddle, ok well sometimes when I go to that page it is already open and I cant figure out why but i would also like it to say at the bottom "close Article" or something like that but cant figure it out?

    Regards

    Thomas

  4. Thomas Morley
    Member
    Posted 7 months ago #

    If you navigate to the home page, then click on the Educating Afghanistan story you will see it is open already and the arows are the wrong way up?

  5. Thomas Morley
    Member
    Posted 7 months ago #

    I am using the short codes if that helps

  6. Baden
    Member
    Plugin Author

    Posted 7 months ago #

    for 'close Article' simply use the swaptitle attribute like so:
    swaptitle="close Article"

    As for the content sometimes showing, the only way this might happen is if your page is taking awhile to load... as once the content is loaded, then jQuery will hide it. This is for SEO, so that search engines (that do not use javascript) will still see the content that is collapsed.

    Every time we visit your page, the content is showing collapsed as it is supposed to.

  7. Thomas Morley
    Member
    Posted 7 months ago #

    Hi there...

    Sorry but I cant get your plug in to work. Everybody tells me that when they go to my site then click on an article on my home page, when it opens it always comes up with all the text showing and the read this article at the bottom with the arrow facing down wards.

    This is what I have

    [expand title="PLEASE READ FULL ARTICLE" trigpos="below" swaptitle="CLOSE ARTICLE"]and then my content[/expand]

    Where am I going wrong?

    Cheers Thomas

  8. Baden
    Member
    Plugin Author

    Posted 7 months ago #

    Hello Thomas. If everyone is telling you this, why not share the link so we can see what exactly the problem seems to be. If it is: http://thomaswmorley.com/portfolio/educating-afghanistan/ it seems to be working correctly on our end. We have tested it with Firefox, Chrome and Safari. Is Everyone using some other browser? Can you duplicate the problem on your end?

  9. Thomas Morley
    Member
    Posted 7 months ago #

    Yes all i have to do is go to http://www.thomaswmorley.com click on one of the stories and it is the same for me all the writing is showing and the please read full article is showing at the bottom ?

  10. Baden
    Member
    Plugin Author

    Posted 7 months ago #

    Is there a difference when you NAVIGATE to the article, as opposed to open the article in a new tab, or load up the article direct? For example, visit your home page and then click on Brick kilns Of Bangladesh. The content is expanded correct? Now click on the link directly: http://thomaswmorley.com/portfolio/brick-kilns-of-bangladesh/ and the content is collapsed, correct?

    If so, then your theme is loading in the content dynamically using some kind of AJAX call. If your theme offers an easy way to hook into the callback, then you would have it fire the function collapse_init(); You will have to ask your theme author about that: http://themeforest.net/item/lens-an-enjoyable-photography-wordpress-theme/5713452/support

    As a work around, try assigning the targclass attribute the value of maptastic by adding it to your expand shortcode like so:

    [expand title="bla bla bla" targclass="maptastic" ...
  11. Thomas Morley
    Member
    Posted 7 months ago #

    Well i can only tell you what is happening i cant write code or mend it and to now have to have some long elongated chat with the people who made the theme will just be a night mare. I cant get it to work but thanks for the help.

  12. Baden
    Member
    Plugin Author

    Posted 7 months ago #

    sorry you can not get the plugin to work with your theme. good luck.

Reply

You must log in to post.

About this Plugin

About this Topic