display content in multiple columns

found a simple solution ..I m posting full index.php <?php /** * Description: Default Index template to display loop of blog posts * * @package WordPress * @subpackage BootstrapWP */ get_header(); ?> <?php // Some sample styles for the images echo “<style type=”text/css”> .half { width: 50%; float: left; } .ng-row { clear: both; } … Read more

How to enqueue google fonts if we use directly in style.css

I have registered google fonts in my theme function file, then used it in style.css. function register_google_fonts() { wp_register_style( ‘googleFonts’, ‘http://fonts.googleapis.com/css?family=Open+Sans:400,300’); wp_enqueue_style( ‘googleFonts’); } add_action( ‘wp_enqueue_scripts’, ‘register_google_fonts’ ); style.css .cssClass { font-family: ‘Open Sans’, sans-serif; } First, theme will try to load the Google font Open Sans if not then use the next font sans-serif

WordPress – Portfolio – Change number of items in a row

I guess if you change this line of code it will make 4 portfolio items in a row. change this : .portfolio_item { width: 20%; margin-bottom: 40px; } to this : .portfolio_item { width: 25%; margin-bottom: 40px; } divide 100 to no of columns you want. e.g 100/4 = 25 so 25% for 4 items … Read more

The placeholder text doesnt disappear

I believe this script will work for you: $(‘[placeholder]’).each(function(){ var $this = $(this); $this.data(‘placeholder’, $this.attr(‘placeholder’)) .focus(function(){$this.removeAttr(‘placeholder’);}) .blur(function(){$this.attr(‘placeholder’, $this.data(‘placeholder’));}); });

Editing anchor style in main navigation bar

Sounds like you need to properly target your HTML elements. It is also not clear from your explanation what needs to happen. More code would definitely help explain what you need. Please improve the quality of your question. With that said, I’ll give it a shot: anchor 1 has different styling because you’re hovering the … Read more

Custom Thumbnails [closed]

Well i fixed it. But thank you all anyway. <div class=”row”> <h4>Noticias Recentes</h4> <?php // theloop if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php// Define our WP Query Parameters ?> <?php $the_query = new WP_Query( ‘posts_per_page=3’ ); ?> <?php// Start our WP Query ?> <?php while ($the_query -> have_posts()) : … Read more

Images use & location, on new wordpress theme

use this code and rename index.html to index.php. <img src=”https://wordpress.stackexchange.com/questions/244087/<?php bloginfo(“template_directory’); ?>/img/Logos-crear.png”> <object> <embed src=”https://wordpress.stackexchange.com/questions/244087/<?php bloginfo(“template_directory’); ?>/img/icons/twitter.svg”> that should work fine.no need to change in css code.