Content before Header

Posted in: Newspaper
Post count: 9

Hi,

First of all, great theme.

Secondly, I would like to suggest my humble opinion and questions in these matters:

1. You guys should definitely consider adding a swipe image effect on lightbox galleries. Arrows are so old these days. Even mobile lightbox is still using arrows.(such as https://github.com/dimsemenov/PhotoSwipe)
Is there a way to adapt such effect using theme hooks or API?

2. Please add sidebar menu on desktops as well, for an option.

2. Please add more developer controls (hooks). For example it would be great if you could add an action right under td-outer-wrap in header.php. Interestingly, you added after header action but no before header action.
Another example here is, I want to add an icon right next to search bar, and I can’t because there is no hook there. I think developer controls are important in a theme.

Which comes to my question.

I want to add content right before header, without modifying the actual theme code. I don’t want to copy and change header.php, because every time theme updates I would need to check the header code if it’s changed.

How can I add a content before header?

Thank you,

Post count: 22421

Hello,
Thank you for your suggestions! I will add them to our list for future updates.
1. I could be possible but there is no simple solution I can provide here on the forum. You will need coding skills to implement it.
2. Unfortunately without altering the theme code, there is no simple way to place content before the header. Our theme does not have such a spot for adding content. Sorry
Thanks.

Post count: 9

Hi Bogdan,

Thank you for taking my suggestions into consideration.

That’s why I’m asking for a couple hooks given in header.php (and search.php if not too much), and wish it in the next release if possible 🙂 I don’t think it’s hard, just two action hooks 🙂 I wouldn’t know the impact though but it shouldn’t be any.

Thank you,

Post count: 22421

Please use this list of possible hooks:
http://adambrown.info/p/wp_hooks/hook
There is no code I can provide for this as we have not tested any such hooks nor do I know what you want to achieve so you should check a few online solutions to tie into a wordpress theme’s header section:
http://wordpress.stackexchange.com/questions/167928/hook-into-wp-head-in-a-plugin

I hope this helps.
Thanks.

Post count: 9

Hi Bogdan,

I think there is a misunderstanding. The thing I want to do cannot be achieved using WordPress hooks. It should be the theme hook. If you check header.php of newspaper theme folder, there is an action call right after show header function (at the end). What I’m asking for is a hook the same as that one (of course different name) but right before calling show header function. I don’t think there should be an impact of it. I also wish you could add more hooks for developers same way such as adding some inside search.php file 🙂

Thank you.

Post count: 22421

Hello,

Sorry but this represents customization and falls beyond what the theme support can offer you. If you do not have the proper coding knowledge to make your modification we suggest hiring a developer to help out as we have not customization department and we cannot help in custom modifications. Sorry

Thank you for your understanding.

Post count: 9

Hi Bogdan,

This is the theme responsibility. I’m not using a free theme that never updates. I have the proper code knowledge as I’m a software developer as well, I’m pretty familiar what I can do around PHP and wordpress. I already made my changes at the code but on the next release of Newspaper theme, I will lose my code and change it again.

Instead, the theme can be responsible for developers as well as users instead of being stubborn about it, no offense. Take a look at the premium themes, each one has the necessary hooks around their code.

As I told before, you already put a hook right after header, which is great. What I’m asking is another hook right before header. (See I have coding skills, I have checked your code, understood it, I don’t need a developer for this.) This is not a customization. If it’s a customization, why would you add it already? This is a premium theme responsibility. It’s just a line of code, for God’s sake.

Post count: 22421

Hello,
I understand what you mean and I will pass this information on to the development team as a suggestion for future updates. We are open to suggestions, we are not stubborn. What I meant is that i cannot provide the code you need right now but I cannot promise it will get implemented as we have lots of requests and we have to prioritize. What i meant is that we cannot offer customization services via the theme support, not disregard suggestions 🙂
Thank you and sorry for the misunderstanding.

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.