Posts by Flávia Amaral • 805 points
34 posts
-
2
votes0
answers52
viewsQ: Upload thumbnail post type frontend via AJAX
I have a professional registration form, where the same register entering name and image (photo). This registration without the use of Ajax, I can do, but it must be done in Ajax, and the image I…
-
1
votes3
answers2413
viewsA: Allow login by email, CPF or CNPJ Woocommerce
Thanks for the help! I managed to do the authentication, but only for one type (CPF or CNPJ), I would like to check for both. I think it’s time to make the $wpdb-prepare, but according to my…
-
1
votes3
answers2413
viewsQ: Allow login by email, CPF or CNPJ Woocommerce
I need to make a filter where it is allowed to login with the CPF or CNPJ in addition to those already allowed by Woocommerce, which is the email or user, on the My Account page. In short, I need to…
-
1
votes0
answers119
viewsQ: Redirecting Login on different pages in my Woocommerce theme
I am developing my own Woocommerce theme, and now I need to make a redirect after logging into a particular page where I am using the Woocommerce login form. For this I added the following function…
-
0
votes2
answers1263
viewsA: Shooting click event with Trigger does not work as expected
I was able to solve the problem based on this link https://stackoverflow.com/questions/20928915/jquery-triggerclick-not-working Upshot: <script> jQuery('.saiba-mais').on('click', function (e)…
-
0
votes2
answers1263
viewsQ: Shooting click event with Trigger does not work as expected
I am using the Wordpress plugin Metaslider for slides, and in it is possible to add links to the images. I created a button and I need to simulate the click, as you were clicking on the currently…
-
2
votes1
answer475
viewsA: Show variable in script src
Solution: I swapped the entire function for an echo, adding $_GET where I wish. <?php echo "<script type='text/javascript'…
-
2
votes1
answer475
viewsQ: Show variable in script src
I need to pass two parameters via url and create a JS function to receive these parameters and place them at the source of a script. Follow what I got. Link to the parameters: <a href="<?php…
-
1
votes1
answer172
viewsA: Listing daughters of a particular Page
<li><a href="#">Instituições</a> <?php $titleslug = 'Instituições'; $unsanitized_titleslug = str_replace('-',' ',$titleslug); $pageinfo =…
-
1
votes1
answer172
viewsQ: Listing daughters of a particular Page
I’m not getting to list the daughters from the menu Institutions that is a Page. Institutions - Policia Militar - Prefecture - Secretariats <li><a href="#">Instituições</a>…
-
0
votes1
answer786
viewsQ: View children (Children) just by clicking on parent term
I have a sidebar and need to list the taxonomy terms 'Category'. So far so good, what I can’t do is: By clicking on a term, you should list his children’s terms in a submenu containing a link to the…
-
4
votes2
answers4525
viewsQ: Create page (page) only in Wordpress PHP code
How to create a page just for the code? Because it is static, IE, you do not need to insert content through the panel, but to have the URL of this page, you need to create a page, even if it is…
-
3
votes2
answers103
viewsQ: Why @ disappears by clicking on the link
I create a password reset link: $mail_message .= "<a href=$url_sender/redefinir-senha?email=$email_sender&identifier=$identifier_sender&code=$confirmation_code> Clique aqui para…
-
1
votes1
answer159
viewsQ: Trade ids by include in gallery shortcode in Wordpress
I am using Postgre and when creating image galleries the shortcode is generated automatically like this: [gallery ids="1,2,3,4,5"]. But this database does not accept 'ids', I must put 'include', so:…
-
2
votes1
answer2156
viewsQ: Fixed Div when decreasing the screen
I’m developing the following website: http://173.44.46.62/~bellanap/pedidos.php but when you lower the screen, the div where the form is breaking. It needs to be fixed. Help me?…
-
3
votes1
answer1315
viewsQ: Compare prices taking into account units (kg, g)
Hello, I need to compare 2 products, taking into account their weight and values, to know which product is more advantageous to buy. Ex: Rice 5kg - R$ 10,00 Rice 2kg - R$ 6,00 Thinking that you can…
-
0
votes2
answers897
viewsA: Open specific accordion by clicking on a list
I managed to solve my problem with the following script: jQuery(document).ready(function(){ //Get the selected accordion index, based on the URL hash. var index = jQuery('#tabs h3').index(…
-
0
votes2
answers897
viewsQ: Open specific accordion by clicking on a list
My problem is this: I have a list (ul>li) that when you click on one of them, you should go to a page containing the specific accordions. This is the website: www.alfacontabil.com.br On the…
-
5
votes2
answers38817
viewsA: How to define the dimensions of an HTML page?
You can put to center the page and still put proportional so: .wrapper{ max-width: 1000px; width: 100%; margin: 0 auto; }
htmlanswered Flávia Amaral 805 -
1
votes1
answer1228
viewsQ: Original site does not accept CSS that on localhost is working
Use the GIT for the versioning of the project under development. I have a form made with the Contact Form 7 and to change his pattern, I changed some classes with css. In the local version it…
-
4
votes2
answers3675
viewsA: Use jQuery function only on @media screen and (max-width:960px)
So guys, I did it this way and solved my problem: jQuery(document).ready(function() { if( $(window).width() <= 960){ jQuery('.img-parceiros').bxSlider({ nextSelector: '.seta-dir', prevSelector:…
-
4
votes2
answers3675
viewsQ: Use jQuery function only on @media screen and (max-width:960px)
We know that there are @media queries. They work with CSS. But I need to do it with Javascript. I need bxSlider to work only on @media screen and (max-width:960px).…
-
2
votes2
answers2219
viewsA: How to upload multiple images with just 1 click?
You can also indicate on <input> the attribute multiple="true", so you can select multiple images at the same time.
-
1
votes3
answers1458
viewsQ: Show post_types linked to a taxonomy
How to return all post_type linked to a taxonomy?
-
2
votes2
answers583
viewsQ: How to save Metabox checkbox with multiple values
I have a loop where it shows the taxonomies of the groups in the format of checkbox, but when he saves, he saves only the last checkbox marked. I would like to know how to save all fields checked?…
-
0
votes1
answer82
viewsA: Customer login with credentials to access news
/* Resolution I found: */ $email = $_POST['email']; $senha = $_POST['senha']; $args = array( 'post_type' => 'clientes', 'meta_query'=> array( 'relation' => 'AND', array( 'key' =>…
-
6
votes2
answers254
viewsQ: News just for certain group on wordpress
When inserting a post in wordpress, I have the taxonomy 'group' with terms 'pharmacies, grocery stores, snack bars...', which are the groups, because I already have customers for these groups. What…
-
14
votes5
answers16269
viewsQ: How to enable a button only when all inputs are completed?
I have a <button> which is rendered as disabled(disabled) when page is initially loaded. I’d like him to stay enabled(authorised) when all data are completed in <input>'s. How could I do…
-
2
votes4
answers2032
viewsA: Validation of forms with javascript
Here is an example using AJAX. This example is of student registration $(document).ready(function(){ $("#formCad").submit(function(event) { event.preventDefault(); //tira o evento do submit var…
javascriptanswered Flávia Amaral 805 -
2
votes1
answer82
viewsQ: Customer login with credentials to access news
Explanation: I have a customer registration in post_type through metaboxes, where there are the fields email and password, and the client’s name is the_title(); Goal: I need to log in with the…
-
1
votes1
answer766
viewsQ: Error in Wordpress installation with PG4WP plugin on server
I’m using wordpress with the plugin PG4WP to use the postgresql. Localhost everything worked. But when I migrated to the server returns the following error when configuring the wp-config…
-
-1
votes1
answer4863
viewsQ: Automatically update video posted on youtube
I have a youtube channel and I want every time I put new video, automatically update in my blog’s iframe.
youtubeasked Flávia Amaral 805 -
1
votes1
answer208
viewsQ: How to catch the grandfather of a term in taxonomy in Wordpress?
How to catch the grandfather of a term in taxonomy in Wordpress? Consider the following tree: -Cidade -Farmacias -farmacia central -farmacia São José I want to take the name of the city from the…
-
2
votes4
answers701
viewsA: Error in "Git push: fatal: could not read Username" command
I follow the following commands when committing: git status git add . ou git add -A git commit -m "mensagem" git pull origin master /*deve-se criar o remote 'origin' antes*/ git push origin…
githubanswered Flávia Amaral 805