WP SITES
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Embed .mov file via 'Add Media' not workingYou can wrap the link to the video in short codes and it will work without the filter.
Example
[video width="2000" height="720" mov="http://example.com/wp-content/uploads/2015/05/demo.mov"][/video]Forum: Themes and Templates
In reply to: [Customizr] use a different slider possible?Won’t work unless you install the plugin and add the slider I.D to the function.
You can follow the link to the installation instructions or post on the sliders forum.
Forum: Fixing WordPress
In reply to: Costumizing category pagesYou can add HTML to the category page using code or a plugin.
What theme are you using?
If its Twenty Fifteen, you would copy over the archive.php file to a child theme and remove the loop which is this code:
<?php // Start the Loop. while ( have_posts() ) : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'content', get_post_format() ); // End the loop. endwhile;You could even create a custom category.php file in your child theme and remove the loop from all or one specific category page which is a better solution.
category-1.php would be better, replacing 1 with the I.D of your category or the slug, example: category-news.php
Learn more About the Template Hierarchy
Forum: Themes and Templates
In reply to: [Customizr] use a different slider possible?Forum: Themes and Templates
In reply to: [Customizr] use a different slider possible?You forgot to follow this
Swap out slider_function with your sliders function.
If you’re using Easing Slider, add this code after installing the plugin:
add_action('__after_header', 'display_slider_before_posts_home', 10); function display_slider_before_posts_home() { if (is_front_page() && function_exists('easingslider') ) { easingslider(); }}Make sure you copy and paste ALL of the code.
Forum: Themes and Templates
In reply to: [Customizr] use a different slider possible?@aggro82 Adding a widget after the header for a slider shortcode isn’t the best solution.
A better solution is to hook the slider in directly after the header.
A code example would look something like this:
add_action ('__after_header', 'yourfunction'); function yourfunction() { if (function_exists('slider_function')) { slider_function(); } }Swap out slider_function with your sliders function.
if your theme doesn’t include custom hooks, you could use this code in your header.php, home.php or single.php file
<?php if ( function_exists( "easingslider" ) ) { easingslider( 1 ); } ?>Forum: Themes and Templates
In reply to: [Enigma] Slide show images1. You will need to search or ask on a graphic design forum, try Adobe forums.
2. Child themes only require a style sheet with header and then you can add a blank functions.php file with an opening PHP tag.
Forum: Themes and Templates
In reply to: [Attorney] Change "Posted by" lineLooks like the comments link is hard coded in the content.php and content-single.php files so you need to copy those files to a child theme and modify the code there.
<?php if ( 'post' == get_post_type() ) : ?> <div class="entry-meta"> <?php attorney_posted_on(); ?> <?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?> <div class="att-meta-com"><?php _e('Comments', 'attorney'); ?><span class="comments-link att-meta-link"><?php comments_popup_link( __( '0', 'attorney' ), __( '1', 'attorney' ), __( '%', 'attorney' ) ); ?></span></div> <?php endif; ?> </div><!-- .entry-meta --> <?php endif; ?> </header><!-- .entry-header -->The entry meta is in the functions file so you can copy that over to the child themes functions file and modify it
if ( ! function_exists( 'attorney_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function attorney_posted_on() { printf( __( '<div class="att-meta">Date <a href="%1$s" title="%2$s" rel="bookmark" class="att-meta-link"><time class="entry-date" datetime="%3$s">%4$s</time></a></div><div class="att-meta">Posted by <a class="url fn n att-meta-link" href="%5$s" title="%6$s" rel="author">%7$s</a></div>', 'attorney' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'attorney' ), get_the_author() ) ), esc_html( get_the_author() ) ); } endif;Untested.
Forum: Themes and Templates
In reply to: [Enigma] Slide show imagesAlways best to crop/re-size them first before uploading so they’re exactly the same size.
You can also use add_image_size and regenerate thumbnails
Add the code for custom image size to a child theme not your parent theme.
Forum: Themes and Templates
In reply to: [Unconditional] change colour of CTA button on headerInspect the button using your browser ( or a browser app like Firebug ) to find which CSS class to modify and change it in the browser apps window before you change it in the themes Style.css file.
All changes should be done in a child theme.
Try this http://wordpress.stackexchange.com/a/22125/9884
All changes should be done in a child theme.
Forum: Themes and Templates
In reply to: [GK Portfolio] Social links feedbackOpen screen options top right hand corner when in the Edit Menu screen wp-admin/nav-menus.php
Then you can check CSS classes and add them for each menu item.
Forum: Themes and Templates
In reply to: [Attorney] Change "Posted by" lineEntry meta in the entry header and entry footer.
Sometimes called post info and post meta.
All modifications to the parent theme should be done in a child theme.
What are you referring to specifically?
Forum: Installing WordPress
In reply to: Moving host, wp-admin folder lost, pages don't displayAfter you update the Site URL’s, you can then remove the code from functions.
Forum: Fixing WordPress
In reply to: Delete Tag not working through wordpress adminReload the page.