Luis Sacristán
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Moving the menu below the tagline on MobileHi
You should add this style to your CSS
@media (max-width: 640px) { .site-branding { margin-left: 40px; } }I don’t know if your theme lets you add extra styles, if don’t you should add it to your styles.css file (in the child theme)
Hope it helps you
Forum: Developing with WordPress
In reply to: How to fix Menu on different screen sizesCSS media queries helps you to set custom CSS for device or browser width.
For example, imagine you have a web where you want to show a message only in mobile devices:
<div class="only_mobile"> This is a message for mobile </div>The CSS is:
.only_mobile { display: none; } /* Now the media query for small devices 640px width */ @media (max-width: 640px) { .only_mobile { display: block; } }This CSS hides the “only_mobile” but in screens smaller than 640px the div will be show.
Now, in your case, I suppose you have something like that:
.menu { /* Some CSS */ } .menu .item { /* CSS for menu items */ padding: 10px 20px; /* Or similar */ } /* This is what you should add to your styles @media (max-width: 760px) { .menu .item { padding: 10px 15px; /* You must test which left/right padding you should use */ } }You should work with your browser, making it smaller (width) and test how it works.
Hope it helps you
`Forum: Developing with WordPress
In reply to: How to fix Menu on different screen sizesYou need to add CSS media queries to reduce the space between items
Forum: Developing with WordPress
In reply to: Extending WordPress to cater for school resultHi, perhaps this one fits your needs
https://wordpress.org/plugins/easy-student-results/
Hope it helps you
Forum: Developing with WordPress
In reply to: customize menuYou should create your own widget that parses the post content, find the headers (h1..H6) and display them.
You can also create a shortcode doing the same thing and add it to a text widget, enabling shortcode execution in text widgets.
Hope it helps you
Forum: Developing with WordPress
In reply to: Opening PopUp contact form or accordion style formHi, I don’t really know Divi or Genesis but I suppose you can add some script like these
https://tympanus.net/codrops/2013/04/23/fullscreen-layout-with-page-transitions/
http://www.cssscript.com/accessible-fullscreen-modal-popup-with-pure-css-css3/You should add some div in the Contact Form 7 form, and some JavaScript.
Hope it helps
Forum: Developing with WordPress
In reply to: Querying database for usersHi, perhaps you should use get_users
https://codex.wordpress.org/Function_Reference/get_users
Using role__in parameter
Hope it helps you
Forum: Developing with WordPress
In reply to: How to Group Users by Taxonomy Rather Than Role OnlyYou’re welcome 🙂
Forum: Developing with WordPress
In reply to: Featured image – link to external pageHi
It depends of your theme, featured images don’t link any page, internal or external.
You should add a extra field, if you don’t know how to code you can use this plugin
https://wordpress.org/plugins/meta-box/
It has a builder if you need
https://metabox.io/plugins/meta-box-builder/I prefer to code rather than using plugins, but sometimes it’s easier
Hope it helps you
Forum: Developing with WordPress
In reply to: Advanced Search Form for WordPressHi, it doesn’t have any sense, the select field is correct and there is not any text field that could pop-up the keyboard. Does you use any kind of script that could change select behavior? Select2 or similar
Forum: Developing with WordPress
In reply to: home_url in Custom Link MenuHi, try this tool
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
After moving to another site run this script and change the previous URL for the new one, it’s what I do when I move from dev to real.
Hope it works
Forum: Developing with WordPress
In reply to: How to Group Users by Taxonomy Rather Than Role OnlyHi, I think your problem is that ‘selected’ must be $the_skill_id
$the_skill_id = get_the_author_meta( 'skill', $user->ID ); wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'skill', 'id' => 'skill', 'selected' => $the_skill_id, 'hierarchical' => true, 'show_option_none' => __('Select'), 'show_count' => true, 'value_field' => 'name', 'taxonomy' => 'skill_type', ) );Hope it works
Forum: Fixing WordPress
In reply to: checkbox for privacyHi you can use this action: ‘register_form’ to add a new check box field. Then you should check if the user selected the privacy check box using this filter: ‘registration_errors’, with this parameter: $errors, $sanitized_user_login, $user_email
Forum: Developing with WordPress
In reply to: WordPress count postHi, you can use wp_count_posts
$count = wp_count_posts('product');I assume you don’t need to count posts with some meta value.
Hope it works
- This reply was modified 9 years, 4 months ago by Luis Sacristán.