codismo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problem with center allign embedded codesThis should work:
.imgur-embed-iframe-pub, .imgur-embed-pub { text-align: center; }
- This reply was modified 7 years, 10 months ago by codismo.
Forum: Developing with WordPress
In reply to: Feutured image if existsNeither of those is correct. You just need to move the $the_query->the_post(); in the original code you had, in all the examples you moved different things.
// query $the_query = new WP_Query( $args ); // if there are posts if ( $the_query->have_posts() ) { // loop the posts while ( $the_query->have_posts() ) { // set up the post $the_query->the_post(); // if the post has a featured image if ( has_post_thumbnail() ) { echo '<div class=FrontImage>'; the_post_thumbnail('large'); echo '</div>'; } } // reset post data wp_reset_postdata(); } else { // nothing found }
Forum: Fixing WordPress
In reply to: Centering Footer Menu, not just centering text alignmentYou’re welcome ??
Forum: Fixing WordPress
In reply to: To show or not to show comments….Might be theme related. Normally when comments are closed the comment submit form is be removed but the comments remain.
So it sounds like the current theme you are using is the reason comments are no longer visible.
Forum: Fixing WordPress
In reply to: Centering Footer Menu, not just centering text alignmentTry this CSS:
#sidebar-footer .widget_nav_menu { text-align: center; }
Forum: Fixing WordPress
In reply to: ADD a link into an ImageLink the image:
<a href="LINK_URL"><img src="IMAGE_URL"></a>
Forum: Developing with WordPress
In reply to: Live preview of controls change in Theme CustomizerYou’ll need JavaScript for that. In a “change” event for the select field get the value and show/hide based on that.
Forum: Developing with WordPress
In reply to: How to change title of page(tag)You’re looking for the wp_title filter.
Forum: Developing with WordPress
In reply to: How to update a custom made themeI’m using WUpdates for several themes, might want to give that a try.
Forum: Developing with WordPress
In reply to: Custom loop including sticky postwp_get_recent_posts() uses get_posts() which forces “ignore_sticky_posts” for the query.
Do a custom query with WP_Query instead of using wp_get_recent_posts()
Forum: Developing with WordPress
In reply to: Feutured image if exists@keesiemeijer is correct, $the_query->the_post(); needs to be the first thing inside of the while loop.
As it is now for the 1st post the has_post_thumbnail() is checking if the page has a featured image, not the post in the loop. For the 2nd post it’s checking if the 1st post has a featured image and so on.
Forum: Fixing WordPress
In reply to: Size of logo in headerThe URL to your website will help in getting a fix for the issue.
Forum: Fixing WordPress
In reply to: Mobile version – responsiveness NOT workingHi,
Every page has a special CSS for that margin so a global solution would be:
@media (max-width: 800px) { .panel-row-style { margin-left: 0 !important; margin-right: 0 !important; } }
But check the theme’s settings, something in there is adding the margins and causing the issue, I’m sure there’s a way to fix it in the settings.
Forum: Developing with WordPress
In reply to: save_post problem with auto-saveIf you are adding your own custom option in there check the $_POST for that option.
if ( ! isset( $_POST['your_option_name'] ) ) { return; }
If not then you could check for the post_title instead.
Forum: Developing with WordPress
In reply to: Difference between ‘register’ and ‘enqueue’ a script?In simplest terms, registering it only tells WordPress about it, enqueuing it adds it to the website.
If you register it you would still need to enqueue it ( by just supplying the name you registered it with, without supplying the URL ).
You can just go ahead and use the wp_enqueue_script()