rocked18
Forum Replies Created
-
+1 –
I think the moove guys should have built it like google tag manager, you add 2/3 shortcodes or code snippets to your theme file that prints the scripts inputted into the boxes into your theme.(which is essentially what we are now doing with the functions above)
Ahh got it thanks! thats working well.
Thanks, this is very helpful! @mikkelhusum
the only issue I can see, if the user presses accept on the the main cookie banner to accept all cookies (the front accept button – without opening the popup) it should add all scripts.
At the moment it does not add 3rd party or advanced – those you still have to enable in the popup.
Is there a way that the cookie banner accept button can add all scripts. ‘Accept All’ etc.
plugin is bust – there is a workaround that someone made – check the other threads to find it
Would be cool if you could add this as a feature, could be an additional option in the short code.
DST=”true”
And then it accounts for the +-1 as needed.
If you have the latest version of VC you can goto the Row settings – General Tab – then scroll to the bottom of the options and you should see transition delay. Just put in 1 second delay and you can choose your transition in the Css animation box above.
just an idea which im using as a workaround….
If you are using a page builder like visual composer or something like that you can set the row to appear after a second delay which allows the logos to be loaded properly.
I’m sure you could do this in CSS if you don’t use a page builder.
Yep thats it, otherwise I’ll have to strip out the code that loads the first 5 posts in the page template and just use the plug in to load all posts.
Having the option you suggest above would be great, save people stripping out code from page templates.
Hi sorry,
I wasn’t too clear, its not repeat posts its just loading the first additional 5 posts on page load not scroll.
So at the moment its doing this on page load
– 5 posts – coded in the page template
– 5 plug in created posts
– load more button activated on scroll to load next 5I want it to be
– 5 posts – coded in the page template
– load more button activated on scroll to load next 5The issue is that its already loading the 5 posts that the plugin generates on page load – without the user scrolling down the page.
Thanks
Forum: Hacks
In reply to: Post title linkThanks for your reply and help!
(Ahh yes sorry Fancy Date Stamp) Hope the below helpsThis is from Fansy Date Stamp.php
function categories(){ $categories = get_the_category(); $spacer= ' '; $list= ''; if($categories){ foreach($categories as $category) { $list .= '<a class"categories" href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$spacer; } $categories_output = trim($list); } return $categories_output; } function insert_date_stamp() { $tday = date("d"); $return_string .= "".stylesheet()." <div class='post-header'> <div class='stamp-container'> <span class = 'day'>".$tday."</span> <span class ='month'>".getmonth()."</span></div> <div class = 'post-title'>".get_the_title()."</div> <small class = 'categories'>categories: ".categories()."</small> </div>"; return $return_string; }
Here is the main section of content.php where I have added the Fancy Date Stamp as a shortcode: <?php echo do_shortcode(“[date-stamp]”); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php if ( is_sticky() ) : ?> <hgroup> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3> </hgroup> <?php else : ?> <?php echo do_shortcode("[date-stamp]"); ?> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> <?php endif; ?> <?php if ( 'post' == get_post_type() ) : ?> <div class="entry-meta"> <?php twentyeleven_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; ?> <?php if ( comments_open() ) : ?> <div class="comments-link"> <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> </div> <?php endif; ?> </header><!-- .entry-header --> <?php if ( is_search() | is_home() | is_tag() | is_category() | is_archive() ) : // Edit this to show excerpts in other areas of the theme?> <div class="entry-summary"> <!-- This adds the post thumbnail/featured image --> <div class="excerpt-thumb"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"> <?php the_post_thumbnail('excerpt-thumbnail', 'class=alignleft'); ?></a></div> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <footer class="entry-meta"> <?php $show_sep = false; ?> <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> <?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); if ( $categories_list ): ?> <span class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); $show_sep = true; ?> </span> <?php endif; // End if categories ?> <?php /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); if ( $tags_list ): if ( $show_sep ) : ?> <span class="sep"> | </span> <?php endif; // End if $show_sep ?> <span class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); $show_sep = true; ?> </span>
Forum: Themes and Templates
In reply to: authorfound the issue. It was the WordPress SEO plug in messing up the author page.
Thanks for your help!
Forum: Themes and Templates
In reply to: authorthanks for that link, something like that would be great!!!
I added that code to author.php but it still has the same issue. Any link to site/author/authorname just does not resolve anything and loops to home page.
could there be something else causing this not to work?
thanks!
Forum: Themes and Templates
In reply to: authorIf you try the test link I have set up you will see.
>Click on ‘Blue Ventures’ below category.https://blog.blueventures.org/
it tries to link you to this https://blog.blueventures.org/author/bv
but just loops you back to the home page.
I would like a page with that authors user information and other posts etc.
Thanks!
Forum: Themes and Templates
In reply to: authorTrue ??
I have indeed reviewed that doc. If you look at the homepage where it says ‘Blue Ventures’ (just under the categories)
That was created by adding <?php the_author_posts_link(); ?></p>
I have also used that sample template code for author.php and added it to the theme files but its not working.
It’s odd as clearly the functionality is there but its just not creating the page correctly.
Very stuck.
Forum: Themes and Templates
In reply to: authorHi esmi,
its customised yes. but based on twenty eleven. I have added the twenty eleven author.php to it but its just creating a loop as im sure you have seen.
Any ideas on where to go with this?
thanks!