badincite
Forum Replies Created
-
Forum: Plugins
In reply to: [Projects by WooThemes] Remove Old category SlugsI just deleted it and removed all projects in the category and recreated it with the correct slug.
Forum: Plugins
In reply to: [Projects by WooThemes] The plugin is not displaying very wellWhich theme are you using? This is made for woothemes but can be modified to work with others… I got mine working pretty well
Forum: Plugins
In reply to: [Projects by WooThemes] Changing Gallery to links to media fileNevermind modified the plugin to work with my Cuztommizr theme
Forum: Themes and Templates
In reply to: [Hueman] Multiple Domain names Causing Icons not to displayThat really weird wonder why its picking up that plugins font.. Ill will probably just do the redirect seems easier.
Forum: Themes and Templates
In reply to: [Hueman] Multiple Domain names Causing Icons not to displayYeah, there pointing to the same folder though. Vabrand.net was register first then we got vabrand.com. I guess when I installed the theme i was under vabrand.com…. all the links say vabrand.com when I look at the source code under vabrand.net.
Forum: Plugins
In reply to: [Product Advisor for Ecwid] Headers: Not set properly Error on widgetsNever mind needed api key
Forum: Plugins
In reply to: [Projects by WooThemes] Page not found errorsDisregard guess my host is having server issue there working again.
Forum: Fixing WordPress
In reply to: Moving wordpress / redirectingAll my other sites aren’t installed at root and as long I edited the directory they display just fine. It just pushes it to the index page and leaves the url domainname.com
Forum: Plugins
In reply to: [WP Parallax Content Slider] working on wordpress 3.9Works for me! Im on 3.9.1
Forum: Fixing WordPress
In reply to: Catch first image or video and return?’
Forum: Plugins
In reply to: Catch first image or video and returnFound some code for exactly what i want to do but its still not grabbing the video url but does grab the image if any? Any ideas
Javascript
function catch_that_iframe() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/<iframe.+src=[\'"]([^\'"]+)[\'"].*><\/iframe>/i', $post->post_content, $matches); $first_img = $matches [1] [0]; return $first_img; }
Php
<?php $topimg = catch_that_image(); // Find first image of Post $topiframe = catch_that_iframe(); if ($topimg) { echo('<img src="'.$topimg.'">'); } else if ($topiframe) { echo('<iframe src="' . $topiframe . '"></iframe>'); } else { echo('<img src="/images/default.jpg">'); } ?>
Forum: Fixing WordPress
In reply to: Ooops, page not found when trying to use wordpress themeHmm never thought of that Ill give it a go!
Forum: Fixing WordPress
In reply to: Ooops, page not found when trying to use wordpress themeI know but created custom homepage in the main site directory its worked before just not here. I want a completely different style for one of my pages so I created a custom index.php for the main site. I have it working all correctly on this site the only difference is I want to use the wordpress theme on my index.
index.php in main directory
<?php // Include WordPress define('WP_USE_THEMES', true); require('blog/wp-blog-header.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <link href="css/parallax-slider.css" rel="stylesheet"> </head> <body> <!--start: Header --> <header> <!--start: Container --> <!--end: Container--> </header> <!--end: Header--> <!-- start: Slider --> <div class="slider-wrapper"> <div id="da-slider" class="da-slider"> <?php $id = 70; $temp = $post; $post = get_post( $id ); setup_postdata( $post ); ?> <div class="da-slide"> <h2><?php the_title(); ?></h2> <p><?php echo excerpt(10); ?></p> <a href="<?php the_permalink(); ?>" <class="da-link">Read more</a> <div class="da-img"><img src="<?php echo catch_that_image() ?>"></div> </div> </div> <nav class="da-arrows"> <span class="da-arrows-prev"></span> <span class="da-arrows-next"></span> </nav> </div> </div> <!-- end: Slider --> <!--start: Wrapper--> <div id="wrapper"> <!--start: Container --> <div class="container"> <?php $id=14; $post = get_post($id); $content = apply_filters('the_content', $post->post_content); echo $content; ?> <?php $posts = get_posts('numberposts=5&order=ASC&orderby=post_title'); foreach ($posts as $post) : setup_postdata( $post ); ?> <br><br /> <h2><?php the_title(); ?></h2> <?php echo content('25'); ?> <p> <p> <a href="<?php the_permalink(); ?>">Read more</a> <p> <p> <i class="mini-ico-calendar"></i> <?php the_date(); ?> <i class="mini-ico-user"></i> <?php the_author(); ?></p> <?php endforeach; ?> </div> <!--end: Container--> </div> <!-- end: Wrapper --> </div> <!-- end: Container --> <!-- start: Footer --> <div id="footer"> </div> <!-- end: Row --> </div> <!-- end: Container --> </div> <!-- end: Footer --> <!-- start: Java Script --> <!-- Placed at the end of the document so the pages load faster --> <script src="js/jquery-1.9.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/jquery.isotope.min.js"></script> <script src="js/jquery.imagesloaded.js"></script> <script src="js/flexslider.js"></script> <script src="js/carousel.js"></script> <script src="js/jquery.cslider.js"></script> <script src="js/slider.js"></script> <script src="js/jquery.fancybox.js"></script> <script src="js/excanvas.js"></script> <script src="js/jquery.flot.js"></script> <script src="js/jquery.flot.pie.min.js"></script> <script src="js/jquery.flot.stack.js"></script> <script src="js/jquery.flot.resize.min.js"></script> <script src="js/custom.js"></script> <!-- end: Java Script --> </body> </html>
Forum: Fixing WordPress
In reply to: Catch first image or video and returnAnyone?
Forum: Themes and Templates
In reply to: [Customizr] Center slider images without changing aspect ratiosAhh I had my old css one saved in there so I could check the changes and forgot to switch it back. I thought the centering feature only does it vertically correct?
Which part needs to be changed to center and fit the height of the container
* Customizr v3.1.11 .carousel { margin-bottom: 0px; } .carousel .container { position: relative; z-index: 9; width: auto; } .carousel-inner > .active { /* Fix slider in IE */ z-index: 9\9; /*hack IE 8 and below */ } .carousel-control { height: 80px; top: 44%; margin-top: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 120px; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); background-color: transparent; border: 0; z-index: 10; *line-height: 72px; /* hack IE7 and below */ } .carousel .item { line-height: 450px; overflow: hidden; min-height: 450px; } .carousel .item > span { *zoom: 1; /* layout hack IE7 and below */ } .carousel-image { position: absolute; top: 0; left: 0; min-width: 100%; /* height: 500px; */ } .carousel-image img { width: 100%; /* max-height: 100%; */ } .carousel-image.slider-full img { max-width: 100%; } .carousel-caption { background-color: transparent\9; /* IE8 and below */ background: rgba(0, 0, 0, 0.2); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33000000', endColorstr='#33000000', GradientType=0); /* IE6-9 */ max-width: 60%; padding: 5%; line-height: 14px; vertical-align: middle; *top: 25%; /*hack IE7 and below */ display: inline-block; position: relative; margin-left: 11%; /*display:inline; IE7 and below */ } .carousel-caption h1, .carousel-caption .lead { margin: 0; line-height: 1.25; color: white; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); } .carousel-caption .btn { margin-top: 10px; } .slider.edit-link { position: absolute; bottom: 40px; right: 50px; } /* If automatic centering is enabled */ .carousel > .center-slides-enabled > .item > .carousel-image img { display: block; position: relative; }