Tag Info

New answers tagged

0

never ever copy text from word document into anything web related. Word documents contain extra styling information which might break the content that you try to copy. If you need to copy test it is best to receive it as a simple text file that can be opened in notepad.


1

Working off of Sepster's answer, the 2014 theme I am working with needed this further addition (here's the full solution that worked for me): .masthead-fixed .site-header { position: relative; } @media screen and (min-width: 783px) { .admin-bar.masthead-fixed .site-header { top:inherit; } }


0

Thanks again for your efforts, Dan. FYI, I got an answer which I put below. The taxonomy terms I used were: "greencheck" and "redx". I used the same 3 terms in 3 different taxonomies and it seems to work OK. /CSS edits/ .greencheck{ background: url(http://example.com/wp-content/themes/news-pro/images/greencheckmark-41x36.png); width: 30px; height: 30px; ...


1

You are using array_push() incorrectly. Do this: $classes[] = 'new-class'; Or this: array_push( $classes, 'new-class' ); But not: $classes[] = array_push( $classes, 'new-class' );


0

Well I add my piece by saying that I'm a beginning wordpress user, and for particularly my portfolio. I have the same responsive image issue, where in the HTML/CSS prototype images say like portfolio piece was like "1000x650" and it scaled. However, in wordpress that didn't work. So I googled and found the original poster of this issue actually worked for ...


0

WordPress enqueues javascript before the HTML is rendered so WordPress doesn't know what the class or ID is on the page. What you MIGHT be able to do is deenqueue the Next-Gen gallery Javascript so it isn't loaded at all and then create your own Javascript file which loads the required Next-Gen JS if a particular class or ID is found. have a look at the ...


0

I developed my own theme for project purposes. It is better to use a separate file to call all js and css files which are needed for admin area only and not for frontend displays. In your themes function.php, give like require get_template_directory() . '/inc/adminscripts.php'; In theme folder, create a folder 'inc' and include the file ...


1

Pretty straightforward answer is both are the correct. In first method you are breaking down the process in two steps. That is needed in case you want to register some scripts but want to load them conditionally at some later time. For example you may want to load some script only when some second script requires this first script. In this case you can ...


2

The list you are referring to was done start to mid 2013, which can be a bit outdated as the was major improvements/new feutures like The TINYMCE editor undergone major modifications and upgrades as from version 3.9 Version 4 saw the introduction of new shortcodes like the video shortcode and audio playlist, just to name a few In the back end plenty of new ...


0

Good news, I seem to have fixed the code. I cleaned up the code for #colophon. I changed it from this: #colophon { background:url(http://kjel.ca/wp-content/uploads/2014/12/footer-img.jpeg) repeat-x bottom center; height:80%; width:100%; position:absolute; margin:0; padding:0; bottom:0; min-width:100%; min-height:1%; } ...


0

Unfortunately you will have to write a small plugin for this which is in my opinion, the best and cleanest and safest option. As you have already stated, it is a really bad idea changing any file in a plugin or theme that you are not the author of, and this goes for core files as well I will tend to not go with a child theme here due to the fact that theme ...


0

As per the wp_nav_menu() function the default classes are like below: <ul class="menu"> <li><a href="#">Menu</a></li> <li> <a href="#">Menu</a> <ul class="sub-menu"> <li><a href="#">SubMenu</a></li> <li><a ...


1

This is happening because the menu item is created with the page page "books", but the page currently displayed is post-type-archive-books (see classes in the body and menu item list). You can use something like function add_nav_menu_classes($classes, $item){ if( is_post_type_archive('books') && ($item->title == "Books" ) ){ $classes[] = ...



Top 50 recent answers are included