GeoDirectory SupportRename some sidebar divs please – GeoDirectory Support https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/feed Mon, 23 Feb 2026 23:25:22 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12946 <![CDATA[Rename some sidebar divs please]]> https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12946 Sat, 23 Aug 2014 13:15:37 +0000 purpleedge In geodirectory_hooks_actions.php you use the same div name for 6 separate sections in the sidebar…

<div class="geodir-company_info">

…is it possible that you could append a number or distinguishing name to these separate instances?

I am formatting the print output and I want to be able to hide 4 of them because they are not relevant to a print of a detail listing.

Or is there some other way I can distinguish these divs?

]]>
https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12949 <![CDATA[Reply To: Rename some sidebar divs please]]> https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12949 Sat, 23 Aug 2014 13:29:02 +0000 Simone Hmmyeah true the block shares the same id…I’ll summon Stiofan

]]>
https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12953 <![CDATA[Reply To: Rename some sidebar divs please]]> https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12953 Sat, 23 Aug 2014 14:58:26 +0000 John Allsopp Hi,
You could use nth-of-type to distinguish eg:


.geodir-company_info:nth-of-type(4) {
     background: #eee;
}
]]>
https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12960 <![CDATA[Reply To: Rename some sidebar divs please]]> https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12960 Sat, 23 Aug 2014 16:46:58 +0000 Paolo @simone, they are classes, not IDs, they can be identical.

Personally I’d use nth-child css property:


/* hide the part with edit, upgrade and favorite link
.geodir-company_info:nth-child(3) {
    display: none;
}

http://www.w3schools.com/cssref/sel_nth-child.asp

all the other divs have unique class too so editing their css should be easy:

geodir_more_info post (addess)
geodir_more_info geodir_timing (Hours)
geodir_more_info geodir_contact (Phone n.)

ecc.

Let us know if this is enough.

]]>
https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12964 <![CDATA[Reply To: Rename some sidebar divs please]]> https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12964 Sun, 24 Aug 2014 02:05:23 +0000 purpleedge Ok, if you’re not prepared to distinguish them I’ll try the nth technique and hope I can consistently know which one I am hiding. I don’t think hiding the contents of the divs will hide the borders?

]]>
https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12983 <![CDATA[Reply To: Rename some sidebar divs please]]> https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12983 Sun, 24 Aug 2014 12:30:00 +0000 Stiofan O'Connor Hi purple, i have added unique classes to them and this will be in the next version.

Thanks,

Stiofan

]]>
https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12994 <![CDATA[Reply To: Rename some sidebar divs please]]> https://wpgeodirectory.com/support/topic/rename-some-sidebar-divs-please/#post-12994 Sun, 24 Aug 2014 23:36:04 +0000 purpleedge Thank you Stiofan!

]]>