I am trying to create a Wordpress plugin that creates an "About the author" page.
I've pretty much finished it except for the part where I need to make it compatible with themes that have a left sidebar and a right sidebar.
In my code to override the author.php page, I just used these functions:
<?php
get_header();
//author info and html go here
//...
get_sidebar('left');
get_sidebar('right');
get_footer();
?>
I am using the function:
add_filter( 'author_template', 'wp_about_author_template' );
to replace the theme right now.
Now this covers those themes that generates the sidebars dynamically.
My problem comes with themes that hardcode their sidebars into their files. So when I try testing out the page, I only get the header, footer, right sidebar and my main content.
My queston is: can I get the parts of themes that keep them together and just inject the needed author info into it? How?
Thanks for the help!
John
Related
I just started to use MVC for a simple website. Very new to this.
I am trying to change from the default layout to a simple layout page with sidebar navigation with drop-down list capability. Something similar to one that is shown in the enter link description here
Could you please guide me through this? I have downloaded the HTML, CSS and js files.
I added them to the project and referred to them in the bundleconfig.cs. But still no success.
Thank you very much
ok so I have a main horizontal menu that appears on all pages, (company, products, about us) and I want another menu, (vertical accordion on the left side of the page) inside products:
phone
--samsung galaxy s4
--iphone 4
pc
--hp pavilion
--toshiba
and when I clic on any of the sections of the accordion menu the information about each product appears on the right using ajax. I have made the accordion menu as a custom html module and the same with the content that its supposed to appear on the right side (I used modules instead of articles).
Now I'm thinking that its probably better to create another menu for the accordion and that the content should be articles, but I dont know how to make it look like an accordion, and I still need help using ajax to show the content of each product.
the main thing is, I want to use ajax to replace one module for another when I clic on any section of the accordion menu. is there any way to do it, all I could find in google its how to change the main article of the page, for that i have to replace
jdoc:include type="component" and add an event with the url but that replaces everything and I just want to change the right module/article
something like this
I dont know if I explained myself well.
I used shaper helix 2 template
Any help would be appreciated.
Check for some extensions here: http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/accordion-menus
An advice... you better forget ajax to load the catalog because as it used on the example the product pages are missed by search engines, as spiders and crawlers doesn't execute javascript. Try to search for that domain... results don't have any product.
Good luck!
I have tried to look around all over the place to edit the joomla frontpage. Im using a template from joomlaxtc which is another reason why I believe im having trouble as the coding is a little different.
What I'm trying to achieve is remove the component or article area for my Joomla 2.5 front page.
here is the website
http://colmandesigns.123abc.co.nz/tyrelink/
as you can see the 'coming soon' white text box I want to remove however I only want to remove it for the front page not the rest of the pages.
I can't get your site to come up, but the home page of a joomla site is generally determined by the default item on your main menu.
From the admin Control Panel:
Choose Menu->Main Menu
Locate the menu item on the list that has a star in the "Home" column
Click on the menu item, and from what you see, determine what the article is
Go to that article, and edit there.
This presumes that your home page is an article, as is the case in a standard Joomla site, and doesn't account for anything your template may do in terms of features or settings,
Simply go to the template manager and go to the advanced parameters and see the show component on home page and select NONE
If you want to remove the "coming soon" bit, then go to the module that holds the "coming soon" bit. On the left, you should see "Module assignment." Click that, and choose "no" for Home Page: assign to.
This video may also be helpful.
Your template may have configuration to hide main content block from frontpage but if not then it can be hidden by using code block below on index.php or your php file which will define template layout.
<?php if (JRequest::getVar('view') != 'featured'): ?>
<div id="maincontentdiv"><jdoc:include type="component" /></div>
<?php endif; ?>
I've searched hi and low for an answer to this seemingly simple question, however I have not found a working solution.
My top nav menu in Magento is hard-coded to include CMS pages (no problems there as the CMS pages are built off of the BaseURL) However one of my links needs to go to an external site but everything I've coded so far is adding the baseURL and therefore is going to 404 Page.
Here is an example of the most recent code I've used - I removed the Mage::BaseURL from the code. Still no luck. I did see a crazy work-around through categories but would prefer to not go that route as I have less control of where link will be located in the top nav menu (my categories load first, but this link needs to be the last in nav)
class="level0 level-top first"><a class="level-top" href="<?php echo $this->getUrl('http://www.externallink.com/')?>"><span><?php echo $this->__("Restaurant") ?></span></a>
Anyone have a suggestion? I'm stuck. Thanks!
You don't need to use PHP code to echo out the link. Just put it in the HTML. When you call 'getUrl()' it will prepend the base_url
I am a newbie in magento. I want to replace the footer area in magento default theme with just an image and for this I edited the footer.phtml file. I removed all the links Contact Us and etc. But how to replace the default blue image from the bottom that is seen on the magento home page using default theme.
You'll have to edit the CSS for the default theme in that case. Also, depending on how you want the footer to look you should also edit the footer html code to fit your design requirements.
Assuming you are using the completely default theme, check this css file for the .footer tags:
skin/frontend/default/default/css/style.css
You can change all your CSS there.
Would suggest you first activate Template hints from System>Configuration>Developer>
Now look at the footer area to see from which theme the footer.phtml is being loaded. Edit the related CSS and you should be good to go
Would also suggest you empty the Magento Cache after making any css changes as suggested