rigots
Forum Replies Created
-
AuthorPosts
-
Hi, I am stuck need need help!
I was using code inspect on chrome browser to identify and modify CSS styles.
I notice that I could also change the html code and see the changes instantaneously on browser.
I need to change my Homepage Entry Title and Entry Subtitle. I mad the changes that I lived in code inspect and then I thought that maybe I could use code snippet to add this changes to my site.
So I created and activated the following code snippet in the hopes of customizing my title and sub title on my home page.
<div class=”header-wrap”>
<h1 class=”entry-title”>MY HOME PAGE TITLE</h1>
<div class=”entry-subtitle”>MY HOME PAGE SUB TITLE</div>
</div>As soon as I activated the code snippet I get an error saying:
Parse error: syntax error, unexpected ‘<‘, expecting end of file in … public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(384) : eval()’d code on line 1I can not get back into my admin page to change or deactivate this code, each time I try it gets back it give the above error, so I am stuck!!
I visited … public_html/wp-content/plugins/code-snippets/php/snippet-ops.php with Komodo editor and what I see in line 384 is:
add_filter( ‘home_url’, ‘code_snippets_safe_mode_query_var’ );Should I just be removing that line of code? It does not seem related to the code I added.
Thank you.
OK, I see. It is not what I want to do. I don’t want to go back to the location page, but I will just live with it.
Thanks.
Hi Paolo,
In your response above you agreed that I should make my CSS changes in ‘gddirectory->Design->Scripts->
Custom style css code’, but the guide you provided above ( https://wpgeodirectory.com/docs/customizing-your-style/ ) suggest that I make my CSS changes into ‘Appearance->Editor->Styles’ css sheet.Which of the two is the correct place to make the CSS changes?
Do any of these two location get reset during a theme or child theme update?Thanks.
Thank you Giri,
I did not realized that the added code snippet had an option to be activated.It works fine now.
Thanks,
This reply has been marked as private.Great! exactly what I wanted.
I have done some CSS before, so I should be able to figure it out if I need any more customization. Thank you for the pointer to the customizing your style tutorial.Just one last general question on customization.
All the CSS changes I make should be added to ‘gddirectory->Design->Scripts->
Custom style css code’ right?There is no theme or child theme styles.css file that I should be modifying right?
An there is no plug it that I should be using to modify the CSS styles right?
Thanks gain.
RigoHi I added the code above with ‘Code Snippets’ and selected “Run snippet everywhere” but this did not work for me to switch the order of the search input box and the city input box.
I wonder if it is because I have created a category pull down box filter right next to the search box on its left. 🙁
Thanks,
RigoI figure it must be the “Code Snippets” with “s”.
Thank you.
Hi,
Did you mean “Code Snippets” or “Code Snippet” with out the “S”?“Code Snippet” as you suggested has no reviews
and “Code Snippets” has 97 reviews mostly all good.
So I just want to clarify which of the two I should be using.Thank you Again.
Great! exactly what I wanted.
Now the Near city field has and icon at the end and when I click it, it gives me the option to check mark ‘Near me’ and option to set mileage. But when I click the “Near Me” check mark I always get a pop up box saying “permission denied in finding your location” in mobile phone or PC. Is this normal? How can I fix it?I think I would just rather remove the option to choose near me. So how can I remove that near me icon from appearing next to the city field?
Thank you again. I am almost there!
Hi Pablo, this worked great thank you. The above code removed the ‘Search for’ box for my ‘GD Home page’, but I want to do the same for all cities, how do I do that?
Each time I change locations to a new city the ‘Search for’ box appears again. I only goes away when I go home.
Please let me know how to remove these for all cities.
Thank you.
RigoHi Paolo,
This worked fine. I was able to remove the complete search section from front page by putting that code on Geodirectory->Design->Script->Custom style css code.However, I changed my mind about removing the complete search section. I would just like to remove the “Search for” box. What CSS do I use to remove the “Search for” box on the front page?
I found that if I create a category pull down many and search it without typing anything on the ‘search for box’ it displays all the items in that category. So I wan remove the ‘search for’ box on the front page, so no one can type anything.
Please give me the CSS code to remove ‘Search for’ box in front home page.
Thank you.
February 12, 2017 at 11:02 pm in reply to: Can you Select EVERYWHERE from NEAR location box? #361021Hi Paolo,
Just to clarify I understand this correctly.
So if I am in the listing page and I use the ‘change location’ to select another city, it will automatically change me back to my home page right?To, the ‘change location’ does two things automatically, change to the selected location and set you back to home page right? And these functionality can not be changed to leave you so you can stay in the listing page when you change cities right?
Thanks,
RigoHi Guust,
Thank you for the reply. Ok, so I see what you mean, if I set my ‘Home page should go to’ to ‘Site root’, then yes, each time I go home the city resets to everywhere.Now when I do a ‘Change Location’ with my location changing pull down menu it always throws me back to my home page. It there a way make it stay on the same page when I change the city with the ‘Change Location’ menu?
Thank you.
Hi,this worked great for setting only the cities I want. Thank you.
I was also able to figure out how to put a category pull down menu on front page and if I search with an empty string with my category selected it does exactly want I want. It lists all the category items in the selected category when I press the search button.
So, I would like to know if I can remove the “Search for” box only in the font page. This way no one can type anything on it before pressing the search button.
If I need to add code in the styles CSS to remove these, which file do I need to modify? or can I add that CSS code at ‘Geodirectory->Design->Scrips’ at the ‘Custom style css code’ box?
Thank you.
Rigo -
AuthorPosts