Posts by Caio Felipe Pereira • 4,570 points
135 posts
-
4
votes2
answers1761
viewsA: Hide Div after x seconds after running action
Who will help you here is the setTimeout. Simply put, you can do: $("#btnConsulta").on('click', function(){ setTimeout(function(){ $("#divForm").css("display","none"); }, 5000); }); Basically, the…
-
4
votes2
answers3930
viewsA: Father Height Element and Sons Position Absolute Elements
Got some fix to fix it? With pure CSS, NAY. Who says that are the Mozilla Lords, in their documentation: ...In Contrast, an element that is positioned Absolutely is Taken out of the flow and Thus…
-
2
votes2
answers43
viewsA: How to use table in Banner Jquery?
Use the bxSlider. It must work the way you want it to!
-
1
votes2
answers471
viewsA: Decrease float accuracy in Javascript?
You can use the toFixed() to do this, but it returns a String, and not a float. From the site itself: var num = 5.56789; var n = num.toFixed(2); results in 5.57 There is an argument about this in…
-
4
votes1
answer77
viewsA: How to perform a 250px horizontal slider per click?
The method Animate of jQuery can solve your problem. You can change the margin of your div .insta according to the size of the photos, and the animate() gives you this transition effect. If you copy…
-
3
votes4
answers3955
viewsA: Different style sheet for each page or only one?
In the Gringo So has a discussion very interesting on the topic. I particularly use the following technique: I have a file that at all times will be in my projects which is the reset.css. After…
cssanswered Caio Felipe Pereira 4,570 -
1
votes3
answers137
viewsA: Message when entering the page
Take a look at the library sweetalert. After you install it, just call one swal (which is the library’s main method) when the document is ready: $(document).ready(function(){ swal('Minha mensagem');…
javascriptanswered Caio Felipe Pereira 4,570 -
0
votes1
answer28
viewsA: Doubt about how to work with (getViewportHeight())
If that method slider.viewport.height() is what arrow the size of your slider, why not use slider.viewport.height(window.innerHeight - 50) ?
-
2
votes1
answer345
viewsA: Responsive typography (Flow Text css)
In my answer, I’m going to assume you didn’t understand absolutely nothing of the code. So, forgive me for the dictatorship or if by chance I speak many obvious: SASS ? The code you posted is SASS.…
-
0
votes2
answers2417
viewsA: Auto Mouse click on a content within a div?
As long as you have some event tied to click in this area of yours (which I will call #meu_elemento), you can do something like that: $('#meu_elemento').trigger('click'); You can leave the event as…
-
4
votes3
answers1759
viewsA: Create post on a wordpress and bring in other wordpress automatically
Doing this automatically seems a little complicated, but I think it’s possible. The solution I’m going to suggest has not been tested but, in theory, I think it should work. I’ll call w1 the…
-
4
votes2
answers61
viewsA: Doubt about decrement operator
Assuming $idade is a whole, $idade-- is equal to $idade = $idade - 1, as well as $idade++ is $idade = $idade + 1. This is a decrease operator. See more on manual of PHP…
phpanswered Caio Felipe Pereira 4,570 -
-2
votes3
answers257
viewsA: Error in formula with OR
The syntax of the function OU is wrong. It works like this: OU(condição1, condição2,...,condiçãoN) If any of the conditions within the function are true, it returns true. Behold this article on the…
excelanswered Caio Felipe Pereira 4,570 -
4
votes2
answers106
viewsA: swap commands in the shell
I don’t know if you can assign something to the word python, in particular. It must be tied to python binaries and it must be kind of complicated to change. What I do know is that you can create a…
-
2
votes2
answers2564
viewsA: Search for file in directory
I didn’t test it, but I believe glob() will solve the problem. If you know the CPF, you can do something like $cpf = "12345678900*"; foreach (glob($cpf) as $arq) { echo "$arq" ."\n"; } it returns…
-
17
votes3
answers2341
viewsA: Good practices using CSS
CSS is an acronym for Cascading STyle Sheets. The Cascading (cascading, cascading, you choose...) refers precisely to the ability to create type selectors .container .wrapper ul.lista >…
-
5
votes1
answer800
viewsA: How to apply chmod 777 with php in main folder and several subfolders at the same time
Using recursion. There is a class called Recursiveiteratoriterator that solves your problem. See the example taken from php.net <?php $iterator = new RecursiveIteratorIterator(new…
phpanswered Caio Felipe Pereira 4,570 -
2
votes1
answer316
viewsA: Query the wp_postmeta table using wpdb from wodpress
The class wpdb provides a direct interface with the bank. Using an example of the Codex: <?php // set the meta_key to the appropriate custom field meta key $meta_key = 'miles'; $allmiles =…
wordpressanswered Caio Felipe Pereira 4,570 -
0
votes2
answers111
viewsA: Error in Admin paging
If I’m not mistaken, the internal pages of Wordpress do not use the options you changed in the bank. This works along with the rewrite Ules, for the front end of the site. The back takes into…
-
1
votes2
answers1005
viewsA: When selecting option displays div with
Assuming you can already create the second <select> with their respective values, you can use the following technique: Create the content you want to show, and leave it hidden by default, and…
-
3
votes2
answers208
viewsA: With or without Wordpress
If you are going to deal with hierarchical content and if they are quite numerous, I would use wordpress, or some other CMS. Think that, if not, you have to build all the query logic to your…
-
2
votes2
answers478
viewsA: Self-adjusting menu with li’s
In a very simple way, your problem is solved with li{display: inline}. Thus, the li align horizontally, and break line as needed.
-
0
votes1
answer267
viewsA: The_excerpt wordpress does not break lines
Of Codex: Displays the excerpt of the Current post after Applying several Filters to it including auto-p formatting which turns double line-breaks into HTML paragraphs. It uses get_the_excerpt() to…
-
0
votes2
answers598
viewsA: Create HTML Blocks in Wordpress and call them in the Post or Page
If you are using ACF, you can use the method get_field() of itself, wherever you wish to display the value. Read more about him at documentation.…
-
1
votes3
answers278
viewsA: SQL query in wp_postmeta table
Your query seems to be correct, but stay tuned to the base name. In Wordpress (which I assume you are using), the table name is wp_postmeta and not wp_postpostmeta. In a more comprehensive case, a…
sqlanswered Caio Felipe Pereira 4,570 -
1
votes1
answer390
viewsA: Custom Post Type with 404 error
Marcelo, according to the Codex, in function register_post_type(): 'Slug' => string Customize the permalink Structure Slug. Defaults to the $post_type value. Should be translatable. In my mind,…
wordpressanswered Caio Felipe Pereira 4,570 -
0
votes1
answer136
viewsA: Shows posts from a Tag on a Wordpress page
This procedure finds the tags that have posts associated with them, and assembles a list based on the first letter: $list = ''; $tags = get_terms( 'post_tag' ); $groups = array(); if( $tags…
-
1
votes3
answers23448
viewsA: Footer "glued" at the bottom of the page and responsive (variable height - using bootstrap)
Regardless of content size, if the size of the footer is fixed (i.e., height: 150px or something like that, this technique is one of the best I’ve ever seen. It’s called Sticky Footer…
-
7
votes2
answers11353
viewsA: What is the correct way to stop a "for" loop?
Yes. If you want to go out of a loop, be it a for or any other, you use the break. In your code, you will log only "Name 2", then "Stop", and your loop to. I recommend that you do the console.log()…
-
2
votes1
answer77
viewsA: Get last child of a product category
wp_get_object_terms() is your friend here. Once you have the post ID, call wp_get_object_terms($post_ID), and it will return an array containing all the categories associated with it, and…
-
1
votes2
answers1913
viewsA: Remove space between span and input
Putting buoyancy, you solve your problem. See this thumb drive. Obviously, you need to create an extra marking to wrap the blocks and arrange the elements in the way you think best. But that way,…
-
1
votes2
answers496
viewsA: Problem with wordpress paging (returns 404)
If you make multiple queries, don’t forget to reset the WP query this way: <?php wp_reset_query(); ?> According to the documentation WP, this method should be called whenever you invoke the…
wordpressanswered Caio Felipe Pereira 4,570 -
0
votes4
answers2426
viewsA: Color transitions with fade in a word
Using Hover as an example, you can easily transition color using the property transition of the CSS. With the simple HTML: <span class="cor">Teste</span> And the CSS (in this case,…
-
1
votes1
answer40
viewsA: Windows Phone ignores breakpoints
This is a recurring bug, which Microsoft has never known how to attack consistently. Maybe now, with the shutdown of the IE machines things will fit in terms of the browser there. They published an…
-
0
votes4
answers191
viewsA: Doubt with CSS selector
You want to put the margin-right for the last element of the line, but in the structure of its HTML, there is no defined line. To do so, I recommend creating a container for every two photos, as…