Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter johannabruiz

    (@johannabruiz)

    Thanks for the clarification, I really appreciate it.

    Thread Starter johannabruiz

    (@johannabruiz)

    Thanks! That’s what I was looking for.

    How about for user type? Is there a filter to Hide the plugin from all users even the admin user role, except a Super User role I’ve defined?

    I essentially want to hide the plugin from all users except the super user role I’ve defined so that no one goes in and makes any updates to post types.

    • This reply was modified 7 years, 10 months ago by johannabruiz.
    Thread Starter johannabruiz

    (@johannabruiz)

    Tijmen,

    Thanks for all of your help.

    I ultimately ended up figuring something out in the interim like this:

    Deregister default jquery:
    wp_deregister_script('jquery');

    Dequeue default jquery:
    wp_dequeue_script('jquery');

    Enqueue latest bundled with Foundation:
    wp_enqueue_script('jquery', get_template_directory_uri() . '/bower_components/jquery/dist/jquery.js', $theme_version, false);

    For some reason if the handle of the latest version of jquery was something other than jquery WPSL was breaking. Super weird, that could be a bug you may want to look into.

    IMO the plugin should check to see if jquery is included, it shouldn’t matter what the handle is, since that’s what I know was stopping the plugin from fully functioning.

    Again, thanks for all of your help troubleshooting.

    Cheers mate.

    J

    Thread Starter johannabruiz

    (@johannabruiz)

    After duplicating the website since it was in production. I was able to switch the theme to the default 2016 theme and the map shows up on a test page that I’d created.

    After trying a few things, I figured out that in my functions file, I am deregistering the default version of jQuery and swapping that out for a newer version. I have a function that enqueues all of my scripts and styles for the theme. The very first line in the function I use wp_deregister_script('jquery'); So that the very next line, I use wp_enqueue_script() to enqueue the latest version of jQuery.

    Is there any way around not using the default version of jQuery that comes with WordPress?
    Thanks for all of your help thus far, I really appreciate it.

    Thread Starter johannabruiz

    (@johannabruiz)

    Thanks for getting back to me regarding this issue. The footer is being called the standard wordpress way as shown in the example you linked to. Odd that the script isn’t being called.

    Any idea why that script wouldn’t be added?

    Also, I went ahead and just added the script below all scripts in the footer and I’m getting a JS error wpslSettings is not defined. Any idea why this would be happening when I have all of the settings filled in, in the dashboard?

    Thread Starter johannabruiz

    (@johannabruiz)

    @benfl Thanks for the apache tip.

    Question, does the above work with a url like this?

    https://example.com/event/noon-yoga-at-union-depot-10/?instance_id=49164

    I tried putting that in my .htaccess file and it didn’t appear to work.

    This is what I put in my file if that helps.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond $1 ^event/
    RewriteCond %{QUERY_STRING} instance_id
    RewriteRule ^(.*) $1? [R,NC,L]
    </IfModule>

    Thanks for any input.

    Thread Starter johannabruiz

    (@johannabruiz)

    To clarify, for example on Christmas I would like to have a little tree icon on that day in the calendar; Or for Valentines day to have a heart icon on that day. Not part of an event but just part of the day itself.

    How could this be accomplished? Is this even possible?

    Thread Starter johannabruiz

    (@johannabruiz)

    I will note that this “fix” https://www.ads-software.com/support/topic/reload-js-files?replies=2 didn’t work for me.

    Thread Starter johannabruiz

    (@johannabruiz)

    I would like the icons to be to the left of the title of the event on the calendar. The color would just highlight the title of the event, similar to how categories are highlighted but by event not by category.

    Thread Starter johannabruiz

    (@johannabruiz)

    I’m pretty sure that I can get the client to hold off on some of the ALM functionality until next week. I’d been trying to get it figured out for the entire week until I decided I’d reach out to see if you had any insight.

    Thanks for your help thus far.

    I love the plugin you developed, great work man!

    Thread Starter johannabruiz

    (@johannabruiz)

    I figured it wouldn’t be easy, but figured you have some insight on how to complete the task. Originally I was just using AFC, now I’m trying to integrate ALM into the website.

    Go check out this page Newsletters

    That is where the code is, sans the ALM currently. I’m trying to integrate the functionality of ALM into the website. I’m currently pulling all ACF fields the standard way documented by ACF.

    Thread Starter johannabruiz

    (@johannabruiz)

    Here is what I put in the repeater template

    <div class="hpk-newsletter">
                  <?php the_post_thumbnail('blog-thumb'); ?>
                  <div class="hpk-newsletter-info">
                    <a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
                    <?php the_excerpt(); ?>
                    <ul><!--
                    --><li><a href="<?php echo $english_pdf['url']; ?>" download="<?php echo $english_pdf['url']; ?>">View English (PDF)</a></li><!--
                    --><li><a href="<?php echo $spanish_pdf['url']; ?>" download="<?php echo $spanish_pdf['url']; ?>">View Spanish (PDF)</a></li><!--
                    --></ul>
                  </div>
                </div>

    The code I was using before I put it in the repeater template looks like this:

    <?php if ( have_rows('newsletter_list') ): ?>
    
            <?php while ( have_rows('newsletter_list') ): the_row();
              $english_pdf = get_sub_field('english_pdf');
              $spanish_pdf = get_sub_field('spanish_pdf');
            ?>
    
              <?php $newsletter = get_sub_field('newsletter'); ?>
    
              <?php if ( $newsletter ): ?>
    
                <?php $post = $newsletter; setup_postdata($post); ?>
                <div class="hpk-newsletter">
                  <?php the_post_thumbnail('blog-thumb'); ?>
                  <div class="hpk-newsletter-info">
                    <a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
                    <?php the_excerpt(); ?>
                    <ul><!--
                    --><li><a href="<?php echo $english_pdf['url']; ?>" download="<?php echo $english_pdf['url']; ?>">View English (PDF)</a></li><!--
                    --><li><a href="<?php echo $spanish_pdf['url']; ?>" download="<?php echo $spanish_pdf['url']; ?>">View Spanish (PDF)</a></li><!--
                    --></ul>
                  </div>
                </div>
                <?php wp_reset_postdata(); ?>
    
              <?php endif; ?>
    
            <?php endwhile; ?>
    
          <?php endif; ?>

    I’m just not sure how to get the custom field data to pass into the ALM repeater.

    Ahh, I didn’t even think of editing the css for the alm-btn-wrap. Thanks for that.

    Thread Starter johannabruiz

    (@johannabruiz)

    For one of the repeaters I’m trying to use site wide, is breaking my grid. I’m using Foundation and the load more button shows up kind of wherever when new posts are loaded and my grid layout gets completely borked. I’m wondering if there’s a way to put the button in it’s own row as well as have a static element in each of the divs that gets created when load more is triggered? Thanks again for any insight you have.

    Thread Starter johannabruiz

    (@johannabruiz)

    Thanks for the quick response. I’ll see if that will help for the input types of text, select and text area.

    I don’t want to have to switch the plugin since this site is in production, due to budget constraints. Radio button are wrapped in a label currently, but that label is empty and the for attribute is missing e.g.

    <label><input type="radio" name="radio-926" value="Community Event">&nbsp;<span class="wpcf7-list-item-label">Community Event</span></label>

    It’s just a matter of adding the text from the span to the label tag itself is the issue that the WCAG 2.0 validation is failing. Figuring out where that is or how to add the value from the span to the label is what I need to figure out.

    Thanks for the help and the plug to the Accessible Defaults plugin. I’m sure that will be used in the future. Thanks again!

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