Tag Info

Hot answers tagged

1

The files are placed in theme folder at wp-content > themes > your_theme_folder There style.css is usually the style file which you can edit as per your requirements.


1

You wouldn't be able to add a FontAwesome icon by passing it directly to the ed.addButton(); method unfortunately. You can try a workaround however. If you leave the image : url+'/youtube.png' parameter out of the method then it will automatically create an empty <span> with the class of mceIcon & another class of mce_[plugin_name]. You can then ...


1

I first want to start of by saying that I agree with what @Wyck said It's generally a bad idea to override a theme's CSS with your plugin, but adding a custom unique class/id to your widget should do the trick. You said @Wyck's recommendation did not work. I probably would think this is the way to go, and the only way as to make sure you don't ...


1

From the link that you given the css properties applying to that image is #content img{ max-width:690px;} img { width:100%;height:auto;} Thats why it smaller images are also stretching. update your answer as: img { max-width: 100%; height: auto; width: auto; /* to make the image responsive */ } #content { max-width:690px;} check this fiddle


1

Just a simple php if to check the contents of the field before outputting markup. <?php if( $second_comment = get_field('second_content_block') ){ ?> <div class="page-content-text-additional"> <?php echo do_shortcode("[vr_jsp] $second_comment [/vr_jsp]"); ?> </div> <?php } ?> You can eliminate the need ...


1

I do not have enough rep to add a comment so I have to post an answer. Could you post the footer with and without those changes? This way we can see what you did to the file. Are you sure the website has not cached it's self for you and you are seeing an out of date version?


1

You could use the slug of each term as class name (and do the styling via CSS) <?php echo '<div class="col-lg-3 ' . $term->slug . '">'; // $term->slug is the class name echo '<a href="' . esc_url( $term_link ) . '">' . $term->name . '</a>'; echo '</div>'; ?> If you want to use dynamic terms and colors I recommend ...



Only top voted, non community-wiki answers of a minimum length are eligible