Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter RoryFeatherwind

    (@roryfeatherwind)

    Hi David,

    First, thanks for getting back to me. The code is active here at https://demonfist.com. It is in the sidebar. I currently have the default state to revealed in order for people to use the links. But originally the “Latest Comics” image could be clicked to collapse that section and it worked wonderfully until recently. Any input on how I can get this work again would be greatly appreciated.

    Some things I found trying different things.
    1. Using just text, Content Reveal still works correctly
    2. Using img tags instead of a CSS class also still works correctly
    3. If I add any text after the CSS class that text will work correctly but the CSS class image still does not work.

    Let me know if you need anything else.

    Thread Starter RoryFeatherwind

    (@roryfeatherwind)

    Another related question: as an alternative, is there a way to use a css class as a heading? I was using images with a rollover image before. This was all done with CSS. It worked with the function call method, but does not seem to work with the short code method.

    Here is an example of what I am trying to do:

    [reveal heading= '<a class="SBLC"></a>'  id='idNEWCOM' ]
    <div id = SBMARGIN>  
    <ul>
    <?php global $comiccat; $latestComics = new WP_Query(); $latestComics->query('showposts=5&cat='.$comiccat);
    while ($latestComics->have_posts()) : $latestComics->the_post(); ?>
    <li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
    <?php endwhile; ?>
         	</ul>
    </div>
    [reveal]

    EDIT: I got the class to show up, but like the php version, nothing will drop down when its clicked. Any advice would be greatly appreciated.

    EDIT 2: So it looks like if I click on it right away while the page is loading it will work, but once the page loads it stops.

Viewing 2 replies - 1 through 2 (of 2 total)