musicletter
Forum Replies Created
-
I know it’s so that’s strange, in fact I’ve been trying for more than a week different possible combinations. Including the one you suggested, but the only one that works is the one I just described. Now distorting the state of affairs and trying another type of automatic insertion and configuration worries me because I don’t want to go back to square one and waste another week on this problem. As they say, as long as it works, do nothing. There’s probably a bug or conflict with some plugin in, I don’t know.
PS
Everything happened by updating the plugin, if the problem occurs again I will do a new automatic insertion with your configuration and I will tell you. Thank you.
HI. With your configuration nothing changed. Thank you
In essence, in order, always looking at the image above, the right combination to prevent the amazon product from appearing on the homepage in my case is as follows:
1 – Post/page content area (marked)
2- Zone / Content of the page / post on the publication (inserts the product links in the database so that they are static) (checked)
3 – Positions (below)
4 – On / Off (marked as active – ON)
5 – Page Types (Tagged – Single Post)
6 – Types of posts (I haven’t reported anything)
7 – Taxonomies (I didn’t report anything)
8 – On / Off (marked as active – ON)
9 – Page types (marked – Home/Front)Ciao. This is the current code
h2.entry-title, h1.entry-title {
font-size: 4.5rem !important;
}
.post-meta-wrapper {
margin-top: 0px !important;
margin-bottom: unset !important;
}
.post-inner {
padding-top: 035px!important;
} .post-separator.styled-separator.is-style-wide.section-inner {
margin-top: 035px;
margin-bottom: 035px;
}
.featured-media {
margin-top: 0.5rem !important;
}
.wp-block-image.size-large.is-resized {
margin-bottom: 0.5rem !important;
margin-top: 0.5rem !important;
}
.singular .entry-header {
padding: 2rem 0 !important;
}
body:not(.singular) main > article:first-of-type {
padding: 1rem 0 0 !important;
}
.archive-header {
padding: 2rem 0 !important;
}
.entry-header {
padding-top: 10px !important;
} function wpspecial_rimozione_prefisso_categoria( $title ) {
if ( is_category() ) {
$title = single_cat_title( '', false );
}
return $title;
}
add_filter( 'get_the_archive_title', 'wpspecial_rimozione_prefisso_categoria' ); div[id*="___gcse"] {
width: 100%;
margin: 2rem 0;
} .gsc-search-box tr,
.gsc-search-box td,
.gsc-search-box table {
border: none !important;
} .gsc-search-box table {
margin: 0;
} td.gsc-search-button {
width: revert;
padding: 0;
}This is the modified code which produces no change in the search box.
h2.entry-title, h1.entry-title { font-size: 4.5rem !important; } .post-meta-wrapper { margin-top: 0px !important; margin-bottom: unset !important; } .post-inner { padding-top: 035px!important; } .post-separator.styled-separator.is-style-wide.section-inner { margin-top: 035px; margin-bottom: 035px; } .featured-media { margin-top: 0.5rem !important; } .wp-block-image.size-large.is-resized { margin-bottom: 0.5rem !important; margin-top: 0.5rem !important; } .singular .entry-header { padding: 2rem 0 !important; } body:not(.singular) main > article:first-of-type { padding: 1rem 0 0 !important; } .archive-header { padding: 2rem 0 !important; } .entry-header { padding-top: 10px !important; } function wpspecial_rimozione_prefisso_categoria( $title ) { if ( is_category() ) { $title = single_cat_title( '', false ); } return $title; } add_filter( 'get_the_archive_title', 'wpspecial_rimozione_prefisso_categoria' ); div[id*="___gcse"] { width: 100%; margin: 2rem 0; } .gsc-search-box tr, .gsc-search-box td, .gsc-search-box table { border: none !important; } .gsc-search-box table { margin: 0; } td.gsc-search-button { width: revert; padding: 0; } .gsib_a { width: 2000px; }
Hi @zoonini, we tried putting your code in our theme’s additional CSS, but the size of the search box is still the same.
Well, tomorrow we will try to add it in the CSS which is in the edit menu of our theme, the same place where we put the previous code. We will keep you updated. A thousand and more thanks
Ciao @zoonini, first of all thank you for your kind support.
One question, should your code .gsib_a { width: 2000px; } be placed in the same place where I entered @greenshady ‘s code?
- This reply was modified 1 year, 9 months ago by musicletter.
Furthermore, if there was an easy way, we would ultimately also want to replace these
https://www.musicletter.it/home/?s=
results with those of “google”We figured out where to put it, it works! Now we need to fix it. We would like it to be bigger, the full width of the screen, when one clicks “search”. A thousand thanks!
Thank you, @greenshady – Can you tell us exactly where we need to put the code, where in the “style css” file?
Ciao @greenshady
So, as we said, we modified the original Twenty Twenty template searchform.php file by replacing the entire content with our Google code:
<script async src="https://cse.google.com/cse.js?cx=5d81e0421a23eb25a"></script><div class="gcse-searchbox-only"></div>
After that, if you go to the [ redundant link removed ], a functioning but not well-formatted box appears (the search button cannot be read, the box iis too small…), while it should be like this: see this link.
https://cse.google.com/cse?cx=5d81e0421a23eb25a#gsc.tab=0
We look forward to your advice.
Thank youHI.
What you told me for the “modal-search.php” file, I did previously with the “searchform.php” file. With this configuration the Google search engine works but it is not formatted correctly.
If instead I make the same change on the file you indicated, it doesn’t work!
What am I supposed to do?
Thank you
Hello. We tried to install the most used plugin (WP Google Search), even if not updated, but we couldn’t configure it as the main search engine on our site’s home page [ redundant link removed ]. Works olny as an add-on widget.
Dear @thelmachido
we would like a practical (easy) one due to our scarce technological knowledge and not very invasive, in order not to weigh down the site.
We’ll take a look. We look forward to other solutions, advice …
Thank you
StaffForum: Developing with WordPress
In reply to: How to replace “Search Form WP” with “Google Search”We will do it right away.
thx